How can I resize extensionless images?

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
gcurtis
Posts: 2
Joined: 2015-09-18T11:05:45-07:00
Authentication code: 1151

How can I resize extensionless images?

Post by gcurtis »

I'm trying to use mogrify to resize all of my files inside of a directory, preserving the names of each

Doing

Code: Select all

mogrify -resize 300 * gives me

Code: Select all

mogrify: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501.
None of my files have extensions, and some of them have weird extensions like .5839204 so maybe that's the problem? Everything thing I've googled includes *.jpg or *.png when defining the input or output. My files don't have those extensions, and I don't want them to.

Also, my files are a mix of types. Some of them are .webp, and some are .png, if that matters.

I've also noticed some .DS_Store files that keep appearing, but I can delete those before running the command and nothing changes

ImageMagick v6.9.1-10 Q16 x86_64 2015-07-26
osx
gcurtis
Posts: 2
Joined: 2015-09-18T11:05:45-07:00
Authentication code: 1151

Re: How can I resize extensionless images?

Post by gcurtis »

Nevermind. Looks like neither mogrify and convert can't handle .webp images, so that's my problem.

Is there anything I can do to resize my webp images, or should I just look for a different program?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How can I resize extensionless images?

Post by fmw42 »

On page http://www.imagemagick.org/script/formats.php, it says

"WEBP RW Weppy image format Requires the WEBP delegate library. Specify the encoding options with the -define option See WebP Encoding Options for more details."

Do you have the WEBP delegate library installed?
Post Reply