New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Omit auto format (webp and avif) for SVG files #381
Comments
The following filters may satisify some of the goal. Would you try it out?
Adding Loading original file should be disabled by default hence only accessible via filter. Because untrusted SVG can very easily contains malicious code.
The default dpi for PDF/SVG is 72, this filter allow specifying for a higher dpi. Though it may be a good idea to allow setting a default config for default dpi. |
Hello, Still the first feature stands as would be very useful, as the client doesn't necessarily know the mimetype in advance (we don't include extensions as it's confusing to serve WebP with .PNG extension for example), and therefore doesn't know for which image
Config flag like |
I'm in the same situation. Only admins are able to upload SVGs in our app so handling this automatically via a config setting would be great. |
Hello, loving your great work and thank you for it!
After using it for a while I encoutered a fewproblems - here are ideas for additional betterment:
Omit SVG from auto-format
We are using
IMAGOR_AUTO_WEBP=1
andIMAGOR_AUTO_AVIF=1
. It's working great for bitmap images, however I'm in need of an option to omit this behavior for vector SVG images as most of the time it makes more sense to just render SVGs as is - filesize often smaller than bitmap, and render quality always better.Obviously the conversion would happen if there is any manipulation or processing filter used (maybe pure SVG manipulation in the future? ;-) )
Ideally such feature would even take a configurable filesize limit and overly complex SVGs over the limit (like filesize over 0.5 MB) would actually be converted, however the small enough images like icons, logos would be kept as SVG.
## Better quality SVG2BitmapAdditionally it would be great to overall enhance the quality of the SVG to bitmap conversion currently produces blurred images even on 1:1.
## Fetching original filesIn our current deployment we are storing images to private S3 bucket exclusively, and we cannot make it public and we need to protect the originals also by HASH. It would be very handy to be able to get the original file skipping any processing (except the signature verification) through Imagor - something like
/original/PATH2FILE
.(obviously such feature would idealy be possibe to disable in config)
Would you consider these features?
The text was updated successfully, but these errors were encountered: