You are not logged in.
We have a few issues with the size of the file downloaded from the api
method 'Downloads_GetLink' being much smaller than the originally
uploaded file. I was told that the reason is that all profile and Meta
data are removed from the image before it's made available.
A few of the customers have complained about this as the file that
they download via our application (which subsequently retrieves the
file using 'Downloads_GetLink') is much smaller than what they uploaded.
We also retrieve the file size (for display purposes) using
Files_GetAssetDetails. However the file size obtained from this method
is the size of the original file. Therefore, it is impossible for us
to display the accurate size of the download file.
I hope this is clear. It would be great if we were provided with a
solution to these issues at your earliest convenience.
Offline
Hi Nishan,
What format is the original file, and what download options are you requesting? In addition, do any watermarking settings take effect on the file?
There are a number of reasons why the byte size might change - some formats support lossless compression, in which case IMS may write the output file using this, or padding may be removed from one of the application data segments when they are updated. If watermarking (or any type of format/dimension/colourspace change) is applied then there is no simple relationship between the file sizes before and after.
Dominic
Offline
Thanks for the response Dominic,
The file format is JPG. Can I please send a private message to you (maybe through your support team) which includes the url (with params and authenticated session) that we call to obtain the download URL. That way you can see for yourself if we are passing the params wrong.
Thanks
Nishan
Offline
Hi Nishan,
Thanks for sending that through - I can now see what was going on. While the file fetch functionality does support getting the original, the behaviour of Downloads.GetLink was to fill in the missing parameters based on the details of the file, which would then lead to the file fetch action performing a convert (and the associated implicit colour profile conversion and stripping of metadata). We are planning to update this so that in this special case it actually returns the original instead.
Dominic
Offline
Thanks Dominic,
We dont have restrictions on the params that we can pass from our application, as long as the IMS API can accept them.
If you let me know the missing parameters that we need to pass through to to retrieve a full sized image, that will help us massively in the short term.
Thanks
Nishan
Offline
Hi Nishan,
If you explicitly request width, height and format as -1 then you should get the actual original.
Dominic
Offline
Hi Dominic,
That worked. Thanks a lot for your solution and patience.
Regards,
Nishan
Offline