Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2015-06-03 12:38:25

nishan
Member
Registered: 2015-03-19
Posts: 8

Download Image size(file size) is different from the original

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

#2 2015-06-03 12:44:17

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: Download Image size(file size) is different from the original

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

#3 2015-06-03 14:16:27

nishan
Member
Registered: 2015-03-19
Posts: 8

Re: Download Image size(file size) is different from the original

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

#4 2015-06-03 16:15:00

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: Download Image size(file size) is different from the original

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

#5 2015-06-03 16:22:41

nishan
Member
Registered: 2015-03-19
Posts: 8

Re: Download Image size(file size) is different from the original

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

#6 2015-06-03 16:45:47

dominic
Third Light Staff
Registered: 2013-06-06
Posts: 119

Re: Download Image size(file size) is different from the original

Hi Nishan,

If you explicitly request width, height and format as -1 then you should get the actual original.

Dominic

Offline

#7 2015-06-03 17:44:52

nishan
Member
Registered: 2015-03-19
Posts: 8

Re: Download Image size(file size) is different from the original

Hi Dominic,

That worked. Thanks a lot for your solution and patience.

Regards,

Nishan

Offline

Board footer