Maybe a more viable solution would be color reduction,
allowing the user to specify max of colors allowed for that.
Also, it's appropriate to add a switch option to enable this
or not if jpeg does is not fit for recompression (because of
transparency of animated gifs).
Allowing this as an alternative to JPEG (when it is possible
to use that) is probably pointless, considering the smaller
size compression and lower quality for that size compared to
JPEG.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Files of such kind are usually animated GIFs and ones with transparency.
GIFs with transparency are usually small anyway, some optimization may occur to the bigger ones once converted to PNG.
Animated GIFs are rarer nowadays and usually are advertisement. That can be filtered by other means.
Lossy PNG compression seems too much trouble for such cases.
Lowering the colors may be an option, but may be not worth the trouble.
Lowering priority for this task.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=1295112
Maybe a more viable solution would be color reduction,
allowing the user to specify max of colors allowed for that.
Also, it's appropriate to add a switch option to enable this
or not if jpeg does is not fit for recompression (because of
transparency of animated gifs).
Allowing this as an alternative to JPEG (when it is possible
to use that) is probably pointless, considering the smaller
size compression and lower quality for that size compared to
JPEG.
Files of such kind are usually animated GIFs and ones with transparency.
GIFs with transparency are usually small anyway, some optimization may occur to the bigger ones once converted to PNG.
Animated GIFs are rarer nowadays and usually are advertisement. That can be filtered by other means.
Lossy PNG compression seems too much trouble for such cases.
Lowering the colors may be an option, but may be not worth the trouble.
Lowering priority for this task.