hi. sorry, newbie question: How can I tell ImageMagick to output the amount of pixels in an image (e.g. not 640*480, but 307200), and only this information (i.e. not identify -verbose rose.jpg)?
Thank you so much.
Search found 14 matches
- 2011-08-16T09:25:55-07:00
- Forum: Users
- Topic: pixel count
- Replies: 7
- Views: 19273
- 2008-12-04T13:29:42-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
oh, i see ... thanks!
- 2008-12-04T12:16:11-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
Thanks el_supremo. Yes, that's what I've ended up doing in the meanwhile. If you ever come across a solution for "FOR /F in ('command')", then please let me know and post here, even if it's in - let's say a year - ... thanks.
BTW, I couldn't figure out what logo: stands for ?
BTW, I couldn't figure out what logo: stands for ?
- 2008-12-03T20:33:53-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
@anthony: ah okay, but if I don't use the fuzz setting, ImageMagick reports all pixels, that are not 100% identical, right ?
- 2008-12-03T20:30:41-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
@el_supremo: I see. Thanks for this insight. Redirection works now. Are you familiar a bit with batch files, el_supremo? If yes, could you tell me how I have to use the standard error output in combination with the FOR /F command as I posted above ? FOR /F %%i in (`compare -metric AE %1 %2 ...
- 2008-12-03T16:12:00-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
The redirection to text file will certainly do it. I was just curious: I wanted to use FOR /F to parse the output of a command, in this case ImageMagick's compare.exe. But since, as you just said, IM writes to the standard error output, I'm a bit clueless if this is even possible. for example: FOR ...
- 2008-12-03T16:00:53-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
OK, I played around with that a little bit and see now, that null: doesn't produce a difference file. Ok. And with: compare -metric AE someimage1.jpg someimage2.png differences.bmp 2>results.txt ... I can create an output file, plus I redirect the output to a text file. I still don't understand, why ...
- 2008-12-03T15:52:16-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
thanks so much for helping me. I looked around in the IM documentation, but I don't understand the red parts: compare.exe -metric AE logo: logo_sig.jpg null: 2 >metric.txt what does "logo:" mean ? and "null: 2" ? I guess "null:" means that no difference-file is created. But what is the "2 ...
- 2008-12-03T13:18:08-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
Re: images = identical ?
Thanks. I know this page.
But how does that help me to get the output:
"images are identical!"
vs.
"Images are different!"
?
But how does that help me to get the output:
"images are identical!"
vs.
"Images are different!"
?
- 2008-12-03T12:41:32-07:00
- Forum: Users
- Topic: images = identical ?
- Replies: 16
- Views: 42037
images = identical ?
Hi. Sorry, a beginner question. Maybe you can help me ? Using ImageMagick, I want to compare two images (with different file formats) and see if they are 100% identical (all pixels are the same). I use : compare.exe -metric AE %1 %2 differences.bmp ... where %1 and %2 will be replaced by some file ...
- 2008-12-02T03:07:35-07:00
- Forum: Users
- Topic: how to count unique colors in image ?
- Replies: 18
- Views: 53022
Re: how to count unique colors in image ?
ah ... wonderful !!
Thanks so much, guys, you saved my day ...
Thanks so much, guys, you saved my day ...
- 2008-12-01T20:06:33-07:00
- Forum: Users
- Topic: how to count unique colors in image ?
- Replies: 18
- Views: 53022
Re: how to count unique colors in image ?
thanks so much. Yes, that's exactly what I was looking for. I'm so happy, I'm glad you helped me. Sorry, that I didn't understand it right away, but I had a look into the ImageMagick documentation and there it says: identify -format ... where "format" is the image format type. So I thought I had to ...
- 2008-12-01T19:40:35-07:00
- Forum: Users
- Topic: how to count unique colors in image ?
- Replies: 18
- Views: 53022
Re: how to count unique colors in image ?
Thanks so much for helping me. I read your suggestions, but couldn't get it to work. I want to display the current colors, NOT reduce them and display the reduced number (funny concept, LOL ;) ) Let's say I have a file called "sunset.png" I want to know how many (unique) colors are in the image. I ...
- 2008-12-01T17:47:33-07:00
- Forum: Users
- Topic: how to count unique colors in image ?
- Replies: 18
- Views: 53022
how to count unique colors in image ?
Hi. Sorry, I'm a beginner ...
I looked everywhere, but couldn't find out what command line command I have to enter to let ImageMagick count the unique colors in an image and write the result to the command line ...
Any ideas? Thanks so much!!
I looked everywhere, but couldn't find out what command line command I have to enter to let ImageMagick count the unique colors in an image and write the result to the command line ...
Any ideas? Thanks so much!!