memeller / shrunked

Shrunked Image Resizer add-on for Thunderbird
https://addons.thunderbird.net/addon/shrunked-image-resizer/
11 stars 0 forks source link

Use of optim tools/API/lib/algo #17

Closed alkaphreak closed 5 months ago

alkaphreak commented 8 months ago

Can we an option to be able to use external lib, tools or API like :

Often the image we send are poorly optimized even after a resize.

alkaphreak commented 8 months ago

An other one i'm lookingt at : https://github.com/thumbor/thumbor

memeller commented 8 months ago

This is very unlikely to be implemented.

An external service means delays, timeouts, server responses, server errors, all of which need to be handled by the UI. Then there is the issue of API keys, free tiers and paid services.

Also if you look at the services mentioned:

It might be doable to add a different JS based algorithm (we currently have two available).

You can also upload the images that give 'poorly optimised' results and maybe someone will be able to figure out what the problem is and fix it.

alkaphreak commented 7 months ago

I'm sorry, i've made some tries since your reply and you are right, your optim is better than me resizing on my side and testing using two types of optim.

Yours is better in weight (the better the lesser) but the picture is not as good in visual quality.

But these are implem choices i guess :)

Here is my two test, if you are curious. The first one, is an imagemagick resized pic, followed by imagecompressor optim. The second one, is a pic sent by mail with your plugin to resize and optim.

imagecompressor

tbird-shrunked

memeller commented 5 months ago

Unfortunately since we rely on rather simple javascript and are limited by Thunderbird add-on rules, it will not be possible to achieve the quality and size offered by specialized larger tools e.g. imagemagick.