Explicit file format not working for HTTP input

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
yasokuuhl
Posts: 8
Joined: 2019-08-22T07:42:59-07:00
Authentication code: 1152

Explicit file format not working for HTTP input

Post 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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Explicit file format not working for HTTP input

Post 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 :-).
Post Reply