LCR Image Loading and Response Headers

We've developed an Apple TV app that fetches images from our server for display.

The app is using TVJS, and specifically the Stack Template to display lists with lockup images.

The images are stored in a database, and returned as binary objects.


For each lockup image, we use code as follows:

<img src="http://server.com/getFile.ashx?filename=SomeFile.png"/>

Apple TV correctly downloads and renders the image without issue.


Today we began changing these images over to LCR images, and while they downloaded and rendered, they were flat.


I've exhaustively verified that the LCR image is correct. I used Safari to download http://server.com/getFile.ashx?filename=SomeFile.LCR.

Opening that downloaded file in Parallax Previewer, it looks right.


I began eliminating variables until I removed our database entirely and pointed the img src to a literal file. (e.g. <img src="http://server.com/files/image.LCR"/>

At this point it rendered correctly with parallax and depth.


So, it appears that unless the src attribute for the img tag points to a literal LCR file Apple TV will assume it is not, and render whatever is returned as a normal image.


To test this, I did the following: (Note that in all test responses, the Response-Type is text/plain) [It doesn't appear Apple TV cares about Response-Type]

1. Set src to <img src="http://server.com/files/image.LCR"/> and verified that the image rendered correctly with parallax and depth.


2. Set src to <img src="http://server.com/files/image.TXT"/> (yes, a text extension) and verified that the image rendered, but flat.

This told me that Apple TV does not explicitely care that an image have a known image extension, but does appear to care that it did not have an LCR extension.


3. Set src to <img src="http://server.com/getFile.ashx?filename=image.LCR"/> and verified the image rendered, but flat.

In addition, I set the "Content-Disposition" to "filename="image.LCR" to further hint to Apple TV that it can treat the file as an LCR.


My question: Am I correct that as it now stands, Apple TV will only render LCR images as Parallax images if the img src is a literal LCR file?


Thanks so much in advance!

LCR Image Loading and Response Headers
 
 
Q