Image Download corrupt

HomeSupportImage StoreImage Download corrupt

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #53318
    armandsdz
    Participant

    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!
    Armands

    #53458
    Xpark Media
    Keymaster

    @armandsdz,

    Thank you for the feedback we have added the code in version 3.3.0

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.