Here's a free and open source project I'm working on.
FB SVG Clipper is a utility to clip bitmap images using the Bézier tool.
https://github.com/Pitto/FB_SVG_Clipper
It's possible to export the clipping as SVG file with a linked bitmap.
List of commands are available in the readme.md file.
For now it imports only non-progressive Jpgs.
Any feedback is welcome.
FB SVG Clipper
Re: FB SVG Clipper
Hi Pitto!
Have you seen the cairo graphics library yet? It'd make your work much more easy, already containing all the features you developed from scratch for fbgfx. Ie you could alternatively write to a PNG pixel image, which would be a better choice for your output (than vector based SVG).
Have you seen the cairo graphics library yet? It'd make your work much more easy, already containing all the features you developed from scratch for fbgfx. Ie you could alternatively write to a PNG pixel image, which would be a better choice for your output (than vector based SVG).
Re: FB SVG Clipper
Hi TJF,
I've yet seen the cairo graphics library but, even if it covers a wide range of applications I didn't use it never.
At the moment I prefer to don't use external libraries in order to simplify the compiling process.
Anyway thanks for the tip, I will give it a try as time allows.
Concerning the vector clipping of bitmap images, in some cases I prefer to use the clipping vector path rather than a bitmap with an alpha channel (ie a png bitmap), due the fact that it allows – when printing – sharpen clipping edges even at low resolutions.
A desktop publishing software that I use imports the SVG file with clipped bitmap if the bitmap itself is embedded in the SVG file in base64. The SVG with embedded bitmap in base64 export is a feature I wish to implement.
Anyway thanks a lot for the feedback.
I've yet seen the cairo graphics library but, even if it covers a wide range of applications I didn't use it never.
At the moment I prefer to don't use external libraries in order to simplify the compiling process.
Anyway thanks for the tip, I will give it a try as time allows.
Concerning the vector clipping of bitmap images, in some cases I prefer to use the clipping vector path rather than a bitmap with an alpha channel (ie a png bitmap), due the fact that it allows – when printing – sharpen clipping edges even at low resolutions.
A desktop publishing software that I use imports the SVG file with clipped bitmap if the bitmap itself is embedded in the SVG file in base64. The SVG with embedded bitmap in base64 export is a feature I wish to implement.
Anyway thanks a lot for the feedback.