Skip to content
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

Bulk image upload & processing #1406

Open
chraebsli opened this issue Mar 18, 2024 · 10 comments
Open

Bulk image upload & processing #1406

chraebsli opened this issue Mar 18, 2024 · 10 comments

Comments

@chraebsli
Copy link

Is your feature request related to a problem? Please describe.
I often have to compress & resize lots of files with the same compression settings. This takes lots of time when I have to drag every image individually, click on import saved settings, wait a moment, download, repeat.

Describe the solution you'd like
I'd be happy if you could upload multiple files at a time, which then be resized & compressed with the same setting and download them as a ZIP archive or so

Does other service/app have this feature?
I regularly use CompressPNG and its other tools like JPG2PNG for bulks, but they don't support resizing & compression settings.

Additional context
-

@chraebsli
Copy link
Author

& Thanks for the app, I really like it! I hope it gets more features soon!

@LarsFlieger
Copy link

This is definitely possible with good speeds. This websites does it: https://clevercompress.com/en

clevercompress.mp4

With web workers and threads you can achieve quite good speeds at several images.

@chraebsli
Copy link
Author

Thanks for the recommendation, but that's no what I was looking for. There are a lot of smart and great compressors out there, like the one I mentioned.

But none of these have the features Squoosh has:

  • custom resize and compression settings
  • local processing
  • see differences in real time

@LarsFlieger
Copy link

Thanks for the recommendation, but that's no what I was looking for. There are a lot of smart and great compressors out there, like the one I mentioned.

But none of these have the features Squoosh has:

  • custom resize and compression settings
  • local processing
  • see differences in real time

I understand. The tool I shared performs local processing, and I'm confident there are tools that offer local compression and settings for resizing and compression.

However, it’s true that most tools offering bulk processing lack features like difference display or similar functionalities. Perhaps we should suggest adding these features to them.

@edvinPL
Copy link

edvinPL commented Sep 30, 2024

I love this tool. Recommended it to many people. It beats solutions like Caesium. Only issue is it lacks bulk processing...

@Khongchai
Copy link

I made a fork of squoosh that adds batch processing.

https://squoosh-multiple-export.vercel.app/

Hope this is useful to some

@chraebsli
Copy link
Author

chraebsli commented Oct 3, 2024

squoosh-multiple-export.vercel.app

Great work @Khongchai, Thanks! Here some feedback & bugs I discovered:

  • it would be cool if the file names persisted. In my case, they just get renamed to a random UUID
  • converting files of different resolutions & aspect ratios to a different filetype works flawlessly (png -> jpeg)
    • converting of multiple file types result in different sizes (same image in png + jpg -> webp). difference of about 15% of file size
    • custom resize with the same files obviously dont work
    • neither do fixed resizes like 50%, which makes all images the same size (of first file) instead of each files 50%
  • in a later version, i'd like to be able to have to change the image in the preview (dropdown selector/ tabs)

That would be the links to the code and PR:

@Khongchai
Copy link

@chraebsli Thanks for the feedback! I noticed that the randomUUID problem happens only when you're using microsoft edge (I tested on Arc, Firefox and Edge, maybe chrome has this issue as well). Anyway one of my todo items is to try to zip everything in memory and download as one .gz file.

I'll copy some of your comments to the PR. I kind of like keeping all todos in one place.

@chraebsli
Copy link
Author

I'll copy some of your comments to the PR. I kind of like keeping all todos in one place.

Yeah haven't seen the PR feedback at first, only searched for the link.

@Arvin-xc
Copy link

Arvin-xc commented Oct 6, 2024

Hi there, I made some minor modifications based on squoosh to support bulk compression
image
You can modify the compression configuration before compressing.
Here is the App deployed on vercel: https://bulk-squoosh.vercel.app/

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants