specifying the path of images in a user-defined directory

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
niconiko
Posts: 3
Joined: 2011-02-14T04:41:48-07:00
Authentication code: 8675308

specifying the path of images in a user-defined directory

Post by niconiko »

Completely new to ImageMagick. Am using shell command with ImageMagick 6.2.8 10/06/10 Q16.

Some of my images are in a directory accessible only if a user ID and password are included in the file path. Some are not.

No problem getting ImageMagick to work with the unprotected images. But when I try to pass the path of the protected images, such as...

Code: Select all

 http://userID:userPassword@myurl.com/imageDirectory/myImage.jpg 
the result is...

Code: Select all

identify: no decode delegate for this image format `/tmp/magick-XXI38o5n'. identify: no data returned `http://userID:userPassword@myurl.com/imageDirectory/myImage.jpg'.
What should I be doing instead?

Thank you.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: specifying the path of images in a user-defined director

Post by anthony »

The ability for convert to download a web image is purely a convenience function. Internally it calls wget (command delegate) to do the task.

If you need something more complex then you are better of DIY the wget command your self.
You can avoid saving an intermediate download image by 'pipeing' from wget into convert.

Code: Select all

    wget ...options... -O - | convert -  ...wherever...
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply