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

Convert All Contents of a Folder #87

Closed
mpurl opened this issue Aug 30, 2022 · 7 comments
Closed

Convert All Contents of a Folder #87

mpurl opened this issue Aug 30, 2022 · 7 comments

Comments

@mpurl
Copy link

mpurl commented Aug 30, 2022

Can we have an option to convert all images in a folder in one step?

@tomayac
Copy link
Owner

tomayac commented Aug 30, 2022

Hmmm, interesting. This should be possible, but will create some interesting UI challenges. Which of all these images would you show to the user for example for them to see the effect of the sliders?

@mpurl
Copy link
Author

mpurl commented Aug 30, 2022

Hmmm, interesting. This should be possible, but will create some interesting UI challenges. Which of all these images would you show to the user for example for them to see the effect of the sliders?

I think there are multiple approaches with different difficulties.
Some ideas could be:

  • creating a php or python script that can be called from the terminal with parameters such as folder path and slider options (one setting for all images)
  • just adding a button "convert folder items" and use the current settings of all images
  • show first (or random image) of the folder and use these settings for all other

I would say that using the same setting for all images would be fine for 90% of all use-cases. If someone is not satisfied with a result, he/she can still convert these images with individual settings manually.
Another (maybe over-engineered) solution could be using two chevrons (< >) to switch between the images, but I think the effort of implementation don't match the benefits.

@tomayac
Copy link
Owner

tomayac commented Aug 31, 2022

Just to be sure: this tool is based on potrace, which already can be used to batch-convert images from the command line. See this post for details. Does this help?

@mpurl
Copy link
Author

mpurl commented Aug 31, 2022

Yeah, but potrace only allows bitmap input and no png files

@tomayac
Copy link
Owner

tomayac commented Aug 31, 2022

ImageMagick to the rescue:

convert input.png output.ppm

@tomayac tomayac closed this as not planned Won't fix, can't repro, duplicate, stale Oct 4, 2022
@lolo9538
Copy link

lolo9538 commented May 20, 2024

Thank you @tomayac it's exactly what I needed. Combined with your great tool I was able to finetune the ideal parameters for potrace.

@tomayac
Copy link
Owner

tomayac commented May 21, 2024

@lolo9538 Brilliant, glad this workflow, well, worked for you!

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

3 participants