Git Product home page Git Product logo

Comments (3)

Jack000 avatar Jack000 commented on June 26, 2024

raspberry pi, heh. That's interesting.

Is that on a bash shell? That line references the image dimensions, do you get proper info from these commands?

identify -format "%w" ./imagepath.jpg

convert ./imagepath.jpg -resize 200x200 -depth 4 +dither -colors 7 -unique-colors txt:-

from expose.

realgeek avatar realgeek commented on June 26, 2024

identify -format "%w" myfile.gif outputs "460"x15 for the 15 frames in that
animated gif. It does the same on a different Ubuntu 14.04 system I have.
Turns out they both use the same version of ImageMagick.
Version: ImageMagick 6.7.7-10 2014-04-09 Q16 http://www.imagemagick.org

On Wed, Oct 14, 2015 at 9:38 PM, Jack Qiao [email protected] wrote:

raspberry pi, heh. That's interesting.

Is that on a bash shell? That line references the image dimensions, do you
get proper info from these commands?

identify -format "%w" ./imagepath.jpg

convert ./imagepath.jpg -resize 200x200 -depth 4 +dither -colors 7 -unique-colors txt:-


Reply to this email directly or view it on GitHub
#6 (comment).

from expose.

Jack000 avatar Jack000 commented on June 26, 2024

that makes sense then. I'm not sure how to handle animated gifs in the source image though. The entire script basically assumes that the output images are jpegs (which for the photography focus I think makes sense) and it will take a bit of refactoring to support different output image formats.

I'm leaning towards just skipping over animated gifs or re-encoding them as a static jpeg. Does the script work ok otherwise, without the animated gif?

from expose.

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.