Page 1 of 1

Simple magick -resize doesn't work

Posted: 2019-07-14T08:57:39-07:00
by rafineria888
Hey, I've very new to ImageMagick and I have a problem with resizing single image.

Version: ImageMagick 7.0.8-53 Q16 x64
OS: Windows 8.1 pro
I have ImageMagick installation folder in my PATH.

I used

Code: Select all

magick 1.png -resize 16x16 2.png
My console didn't return any output and didn't create any resized image.
It just feeeze for like 1 minute and does nothing.

My goal using ImageMagick is to copy all images from my directory to new directory and resize copied images to 16x16 without losing too much quality.

Thanks for help.

Re: Simple magick -resize doesn't work

Posted: 2019-07-14T09:01:44-07:00
by snibgo
What happens with the following commands?

Code: Select all

magick rose: r.png

magick r.png r2.png

magick r.png -resize 16x6 r3.png
Do you get the three output images? Any errors?

What is the text output from:

Code: Select all

magick 1.png info:

Re: Simple magick -resize doesn't work

Posted: 2019-07-14T09:09:53-07:00
by rafineria888

Code: Select all

magick rose: r.png
Create image r.png with rose in my directory

Code: Select all

magick r.png r2.png
The same but file name is r2.png

Code: Select all

magick r.png -resize 16x6 r3.png
Sadly it's the same problem as I described above :( No changes in my directory.

Code: Select all

magick 1.png info:

Code: Select all

1.png PNG 250x50 250x50+0+0 8-bit sRGB 18084B 0.016u 0:00.060
Whatever 8-bit means here... I installed ImageMagick with "16 bits-per-pixel component"

Re: Simple magick -resize doesn't work

Posted: 2019-07-14T09:28:16-07:00
by snibgo
rafineria888 wrote:Whatever 8-bit means here...
It means the image has only 8 bits/channel/pixel. That's okay.

I have no idea why "-resize 16x16" doesn't work. Does anything else work, eg "-blur 0x1" or "-crop 1x1+0+0"?

Re: Simple magick -resize doesn't work

Posted: 2019-07-14T11:14:10-07:00
by fmw42
Does -resize works with other formats, such as GIF?

Re: Simple magick -resize doesn't work

Posted: 2019-07-14T13:17:36-07:00
by fmw42
How was your Imagemagick installed? Where did you get your Imagemagick? Was it binary or source?

Re: Simple magick -resize doesn't work

Posted: 2019-07-14T13:21:45-07:00
by rafineria888
It works for other images.
My 1.png seem to be invalid for ImageMagick somehow :/

Re: Simple magick -resize doesn't work

Posted: 2019-07-14T13:33:49-07:00
by snibgo
rafineria888 wrote:My 1.png seem to be invalid for ImageMagick somehow
Ah, that might explain it. Can you upload it to somewhere and paste a link to it? Then a developer can take a look. If IM can't read it, it should report the problem.