Imageprocessor: Feature Request: Handle SVGs

Created on 16 Jun 2017  路  5Comments  路  Source: JimBobSquarePants/ImageProcessor

I know, svg isn't really an image. But I think we will se more and more images on the web saved as SVG. Why have ImageProcessor handle them? Because, sometimes you want to crop an SVG file. If you crop an SVG file, ImageProcessor should take the svg file, and update the viewbox attribute accordingly, and thereby define a crop for the svg.

Is it doable? I'd like to help, if possible.

question

Most helpful comment

@dampee I still want SVG output. I'll see if I can make my own then :)

All 5 comments

Hi @skttl

That's way out of scope I'm afraid. SVG is such a different format that it would take me a massive amount of effort to do the work. The future is all about the ImageSharp family of libraries so I want to focus there.

There are plans in the future to do some work with SVG though over at our new org Six Labors so if you were able to help out that would be awesome

Cheers

James

Because imageprocessor is bitmap based, you could write a plugin to read the SVG, convert it to a bitmap, and let imageprocessor handle the output in JPEG/PNG/... I've done something similar for PDF.

Still too much for me to do. ImageProcessor is not my focus now. It's solid and has a hefty feature set already.

@dampee I still want SVG output. I'll see if I can make my own then :)

You cats are crazy!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

magic-john picture magic-john  路  7Comments

rcharb1 picture rcharb1  路  8Comments

AtomicSpider picture AtomicSpider  路  3Comments

Leftyx picture Leftyx  路  5Comments

Jogai picture Jogai  路  6Comments