Image optimizer : Optimize images and reduce it's size

I am a liitle bit confused. What does this block returns?

2 Likes

Btw nice extension

1 Like

If it failed it returns false if not, it returns true.

1 Like

Fails to optimize an image in assets, Android 10 companion, using // ?

Sorry, I don't think it can optimize images from assets :thinking:

works with full path:

/storage/emulated/0/Android/data/edu.mit.appinventor.aicompanion3/files/assets/

2 Likes

I will fix the issue soon. Thanks :grinning:

1 Like

That said does a good job, optimised a 1.9mb image file to 55kb. which looks fine on a phone screen.

Could you add an option to retain the original file name and append -compressed (or better -opt) to it,
or option to name the compressed/optimised file?

2 Likes

So you mean like :

if(append)

the file name should be : "compressed" + orginal name.
Am I right?

What does optimized mean? Original: left, opt: right

This looks like compression with a large loss of quality.

No wonder:

grafik

What is the resolution of both images?

Please give me some time.

for example (append means add to end)

original file name: myImage1.png
optimised: myImage1-opt.png

That's not an issue. There is nothing to fix.

2 Likes

Sorry but the is the quality of output


Yes, but we can just add it in the output name?

1 Like

It's perfectly fine. I just wanted to know how the compression is done.

2 Likes

Yes ? I believe is the answer.....

1 Like

Yes, also because if I update my extension for the thing, I'll need to update it everywhere and the documentation.

Please dont take it badly.

1 Like