Search found 4 matches

by kosmarnik
2017-04-04T02:27:20-07:00
Forum: Users
Topic: Command line magick, using image size in command?
Replies: 6
Views: 6765

Re: Command line magick, using image size in command?


On a Unix-like system, the syntax above needs to be changed to

magick image.jpg -resize 1280x1280 -set option:newsize "%[fx:min(w,h)]x%[fx:min(w,h)]" \
\( overlay.jpg -resize "%[newsize]" \) -gravity center -compose multiply -composite out.jpg


Indeed, it was late and I missed the quoted ...
by kosmarnik
2017-04-03T17:01:47-07:00
Forum: Users
Topic: Command line magick, using image size in command?
Replies: 6
Views: 6765

Re: Command line magick, using image size in command?

Thank you people!
That was quick :)

I switched to IM 7 today, so no problem there.
Platform, I'm not even sure :)
Cygwin on Win 10. A mix of win and cygwin Perl.
by kosmarnik
2017-04-03T13:11:53-07:00
Forum: Users
Topic: Command line magick, using image size in command?
Replies: 6
Views: 6765

Command line magick, using image size in command?

Hi,
Currently I use 2 lines to run magick, one to get the image size, second to actually do the job.
Would it be possible to have it in one go?
magick image.jpg -profile sRGB.icc overlay.jpg -resize 1280x600 -gravity center -compose multiply -strip -define jpeg:extent=240000 -composite out.jpg
Why ...
by kosmarnik
2010-07-15T02:52:35-07:00
Forum: PerlMagick
Topic: Problem using IM to validate JPEGs
Replies: 0
Views: 6584

Problem using IM to validate JPEGs

Hi!

I need to validate a bunch (~few million) JPEGs. I;m mostly looking for truncated files, but I'd like the jpeg to be decoded and checked for other possible errors.
I'm on windows so I can't use Image::TestJPG so I decided to give IM a try.
However it doesn't seem to work as I supposed it should ...