![]() |
|
getProtectedImageURL truncates jpeg on Download - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: getProtectedImageURL truncates jpeg on Download (/thread-10260.html) |
getProtectedImageURL truncates jpeg on Download - risottto - 2012-08-01 I was just trying to add a download button to get a full sized version of the current image in the image.php file. Simple right? I just have a link with the code: However, with the "Full Image Protection" set to "Download" (or using I have no idea what might be causing this. On the latest 1.4.3. version. Thanks getProtectedImageURL truncates jpeg on Download - sbillard - 2012-08-01 The difference is in how the image data is provided to the browser. For protection=download opens the file and uses the PHP function fpasstrhu() to read the data and send it to the PHP output buffer. With the protection checkbox off the browser is requesting the image via its URL. But I do not have any idea why you would get truncation of the image. |