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-03-25 17:33:07

JuicePaul
Member
Registered: 2015-03-25
Posts: 7

Get Asset Download URL with a DPI set

From the documentation of the API, I can't seem to find a way to download (or get a URL for) an asset at a specific download size AND supply the DPI.

I am currently using:

Search_GeneralSearch
to return a list of assets.

Then loop through these assets and pass them one by one to:

Downloads_PublishAssetByDownloadSize

Passing in the assetID and the downloadSizeId.

However, this does not allow for me to supply the DPI.

Is there a way of doing this? And if there is, is there also a way of doing this with multiple assets at once, rather than having to call them individually?

Thanks in advance.

Paul

Offline

#2 2015-06-03 13:39:39

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

Re: Get Asset Download URL with a DPI set

Hi Paul,

I'm afraid it isn't currently possible to do this - the Publishing feature was designed around web usage, where the DPI metadata is irrelevant. Can you expand on what it is that you need to specify this for?

Kind regards,

Dominic

Offline

#3 2015-06-03 15:09:05

JuicePaul
Member
Registered: 2015-03-25
Posts: 7

Re: Get Asset Download URL with a DPI set

Hi,

It's for a web to print solution.
The web to print solution needs to know the size of the image in pixels and the DPI in order to know what maximum physical size it can be printed at safely.
I appreciate being able to actually set the DPI is kind of irrelevant in this scenario, but it's necessary to know at what DPI the image has been created even if it's a default, unchangeable one.

Is there a default DPI that is produced by this function or the Downloads_GetLink function?


Kind regards,

Paul

Offline

#4 2015-06-03 16:07:10

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

Re: Get Asset Download URL with a DPI set

Hi Paul,

Downloads.GetLink is being updated to support specification of DPI - although this has not yet been released.

Dominic

Offline

#5 2015-06-24 10:11:22

JuicePaul
Member
Registered: 2015-03-25
Posts: 7

Re: Get Asset Download URL with a DPI set

Hi Dominic,

Thanks for sorting this out. It's much appreciated.


Kind regards,

Paul

Offline

#6 2015-07-07 09:01:08

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

Re: Get Asset Download URL with a DPI set

You're welcome, Paul.

For the benefit of anyone else looking for this, Downloads.GetLink supports DPI from IMS v6.1.8-5 onwards.

Dominic

Offline

Board footer