Bring Your Business to Life › Support › Image Store › Image Download corrupt
Tagged: broken corrupt image download
- AuthorPosts
- June 6, 2013 at 6:36 am #53318armandsdzParticipant
Hi!
While using Image Store plugin I discovered one thing and I have a suggestion for future versions.
It’s about download of purchased images by using link provided by plugin.
I had an issue that downloaded images were broken.
After doing some research I discovered that it is because an extra line(character) is generated at the beginning of image file.
After doing some more research it turned out that it is because of my functions.php file.
There were one emtpy line between php tags:
<?php
php stuff
?>
<?php
other php stuff
?>
Because of this extra line was included in downloaded image file.
It’s a bug of my custom theme, of course, but it would be good for Image Store plugin to be safe against such bugs.
So, I have a suggestion to start download.php file of plugin with, for example, ob_clean();
That would clear output buffer from characters that are not supposed to go into image file.
Thanks!
ArmandsJune 16, 2013 at 5:53 pm #53458Xpark MediaKeymasterThank you for the feedback we have added the code in version 3.3.0
- AuthorPosts
- You must be logged in to reply to this topic.