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

integer expression expected #6

Open
realgeek opened this issue Oct 14, 2015 · 3 comments
Open

integer expression expected #6

realgeek opened this issue Oct 14, 2015 · 3 comments

Comments

@realgeek
Copy link

On my Raspberry Pi running Raspbian, I get
Reading files...................................../home/cherron/bin/expose.sh: line 402: [: 460460460460460460460460460460460460460460460460: integer expression expected

@Jack000
Copy link
Owner

Jack000 commented Oct 15, 2015

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:-

@realgeek
Copy link
Author

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 notifications@github.com 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).

@Jack000
Copy link
Owner

Jack000 commented Oct 15, 2015

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?

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

2 participants