I can also confirm that running wget on the same url does result in a .jpg file on the local machine, which can then be read
by the IOC without issue.
When I enter the url into a web browser it also recognizes it as a jpeg file and displays its dimensions in the title bar.
When I press 'Acquire' to start image acquisition the IOC freezes for some time, and then goes back into the done state after
printing the error message.
Thanks for the quick response,
From: Mark Rivers <firstname.lastname@example.org>
Sent: Wednesday, July 31, 2019 11:19 AM
To: Wlodek, Jakub <email@example.com>
Cc: firstname.lastname@example.org <email@example.com>
Subject: Re: Problem with ADURL reading .jpg image from server
I believe that GraphicsMagick uses the file extension to determine the format. It looks like URL does not have a .jpg extension?
Sent from my iPhone
On Jul 31, 2019, at 8:56 AM, Wlodek, Jakub via Tech-talk <firstname.lastname@example.org<mailto:email@example.com>> wrote:
I have been working with the ADURL driver to set up an IOC for an analog camera here at NSLS2. I have the IOC set up and running, and I can read .jpg files without issue locally on the ioc server.
However, when I enter the URL for the image coming from the camera, the driver does not get images, and when I stop acquisition, I get the following error message:
10:48:39 74:30 39.180u 3390 constitute.c/GmReadImage/1535/MissingDelegate:
No decode delegate for this image format (/tmp/gmmxs23m)
2019/07/31 10:48:39.033 URLDriver:readImage: error reading URL="" No decode delegate for this image format (/tmp/gmmxs23m) reported by ../constitute.c:1535 (GmReadImage)
I tested putting the url I gave the IOC into a web browser and it correctly opened a jpeg image. I also downloaded said image to the local machine and pointed at it: /home/jwlodek/image.jpg, and the ADURL IOC
processed it without issue. My guess is that when reading the url from the server the ADURL driver is not actually seeing a .jpg file, which is causing it to say that there doesn't exist a decode format for it.
Has anyone else ran into this issue before, and if so would you be able to share the solution?