Simple magick -resize doesn't work

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rafineria888
Posts: 3
Joined: 2019-07-14T08:41:14-07:00
Authentication code: 1152

Simple magick -resize doesn't work

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Simple magick -resize doesn't work

Post 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:
snibgo's IM pages: im.snibgo.com
rafineria888
Posts: 3
Joined: 2019-07-14T08:41:14-07:00
Authentication code: 1152

Re: Simple magick -resize doesn't work

Post 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"
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Simple magick -resize doesn't work

Post 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"?
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple magick -resize doesn't work

Post by fmw42 »

Does -resize works with other formats, such as GIF?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Simple magick -resize doesn't work

Post by fmw42 »

How was your Imagemagick installed? Where did you get your Imagemagick? Was it binary or source?
rafineria888
Posts: 3
Joined: 2019-07-14T08:41:14-07:00
Authentication code: 1152

Re: Simple magick -resize doesn't work

Post by rafineria888 »

It works for other images.
My 1.png seem to be invalid for ImageMagick somehow :/
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Simple magick -resize doesn't work

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply