Page 1 of 1

Explicit file format not working for HTTP input

Posted: 2019-08-23T08:56:06-07:00
by yasokuuhl
Original thread: https://imagemagick.org/discourse-serve ... 6&p=168206

Explicitly specifying the input file format doesn't seem to work for http sources. See examples (and different syntax attempts) below.

Originally I discovered this with DNG and AI files but for simplicity I used a jpg input file in this sample:

Code: Select all

identify -verbose jpg:https://bitmovin-poc-input.s3-eu-west-1.amazonaws.com/xx_images/ingest/jpegadobergb.jpg
identify: unable to open image 'https://bitmovin-poc-input.s3-eu-west-1.amazonaws.com/xx_images/ingest/jpegadobergb.jpg': No such file or directory @ error/blob.c/OpenBlob/3497.
Then I thought maybe the placement of the "jpg:" in front of the URL is wrong and maybe it must be within the URL in front of the filename:

Code: Select all

identify -verbose https://bitmovin-poc-input.s3-eu-west-1.amazonaws.com/xx_images/ingest/jpg:jpegadobergb.jpg
identify: must specify image size `/var/folders/wm/m3m6tf1s5sx8bw52dhk7c4nxkkhfhv/T/magick-53833Z6yD6gIQ3r1E' @ error/mvg.c/ReadMVGImage/186.
Still no success but at least the file can be found now. Removing -verbose from the equation results in this:

Code: Select all

identify  https://bitmovin-poc-input.s3-eu-west-1.amazonaws.com/xx_images/ingest/jpg:jpegadobergb.jpg
https://bitmovin-poc-input.s3-eu-west-1.amazonaws.com/xx_images/ingest/jpg:jpegadobergb.jpg=>//bitmovin-poc-input.s3-eu-west-1.amazonaws.com/xx_images/ingest/jpg:jpegadobergb.jpg SVG 0x0 16-bit sRGB 243B 0.010u 0:00.010
With these two samples I had the same results:
https://bitmovin-poc-input.s3-eu-west-1 ... N_1DM2.dng
https://bitmovin-poc-input.s3-eu-west-1 ... bindung.ai

Re: Explicit file format not working for HTTP input

Posted: 2019-08-24T13:55:08-07:00
by magick
The problem is that HTTPS is an overloaded syntax in that its actually part of the image path but is also behaving as an explicit image format. As such, we cannot fix it without breaking the file path parsing. Consider this as a WONT FIX bug or as a feature :-).