GithubHelp home page GithubHelp logo

Convert All Contents of a Folder about svgcode HOT 7 CLOSED

mpurl avatar mpurl commented on August 16, 2024
Convert All Contents of a Folder

from svgcode.

Comments (7)

tomayac avatar tomayac commented on August 16, 2024

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?

from svgcode.

mpurl avatar mpurl commented on August 16, 2024

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.

from svgcode.

tomayac avatar tomayac commented on August 16, 2024

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?

from svgcode.

mpurl avatar mpurl commented on August 16, 2024

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

from svgcode.

tomayac avatar tomayac commented on August 16, 2024

ImageMagick to the rescue:

convert input.png output.ppm

from svgcode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.