Page 1 of 1

specifying the path of images in a user-defined directory

Posted: 2011-02-14T05:04:58-07:00
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.

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

Posted: 2011-02-14T20:02:09-07:00
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...