Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

Conversation

@memeller
Copy link

Added support for resizing of PNG files.
File format is preserved (pngs are resized and saved as pngs, jpegs are resized and saved as jpegs).
Both inline images and attached images work (TB 102.4.2).
Sorry for the previous PR (closed) - after adding it I've noticed that I need to fix the branch so that it reflects only the changes for this PR.

Added support for resizing of PNG files. The detection methods for supported files were slightly modified to include png files. Previously "data:iamge/jpeg" was hardcoded (shrunked.js, ShrunkedImage.jsm), but now the image format is preserved - pngs are resized and saved as pngs, jpegs are resized and saved as jpegs.
Tested for inline images and attachments, everything works under TB 102.4.2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant