Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter Kiwi1919

    (@kiwi1919)

    I’ve set the maxsrcbytes back to default and set the maxsrcwidth and maxsrcheight to 1024. All the images are 842×595 pixels some black and white and some color. Photoshop shows the images in color at around 1.43mb (I guess that’s the uncompressed size, they are jpegs) I’ll check the memory_limit setting and see what that’s set to.

    Plugin Author thomstark

    (@thomstark)

    Are you still getting broken images?

    Plugin Author thomstark

    (@thomstark)

    I’ll start working later today at an alternative option to generate actual thumbnails, if for each file one doesn’t exist, in the same directory. Then if you’re not in manager mode, it will skip over the thumb, but use the thumb for the associated file. That might be more efficient, since it will only have to do the hard work once, ever, for a given image.

    Plugin Author thomstark

    (@thomstark)

    Any status update?

    Plugin Author thomstark

    (@thomstark)

    OK. I just pushed yet another new update, version 2.2.5.

    It adds the option to generate permanent thumbnail images, meaning for a given image, all the work is done on a single page load, and every page load after that, the thumb is already there.

    You can choose either mode, transient or permanent.

    Thread Starter Kiwi1919

    (@kiwi1919)

    Hi Thom,

    I’m still getting the broken icon. It looks like the php.ini is hidden on our server so I’ve asked the support guys to check the memory_limit setting to see what it’s at.

    Plugin Author thomstark

    (@thomstark)

    Did you get the update to 2.2.5?

    Plugin Author thomstark

    (@thomstark)

    Create a text file, name it index.php, paste the code below into it, then upload it to a test directory on your server, then navigate to that directory.

    <?php ?>
    <html><body>
    memory_limit: <?php echo ini_get('memory_limit'); ?><br>
    max_input_time: <?php echo ini_get('max_input_time'); ?><br>
    max_execution_time: <?php echo ini_get('max_execution_time'); ?><br>
    </body></html>

    But regardless, version 2.2.5 has another option for you that should not give you a broken image ever. It creates an actual permanent thumbnail image, and if it fails, it just returns the file type icon.

    Plugin Author thomstark

    (@thomstark)

    Seriously, I just tested out the permanent option on a test site that has the lowest memory_limit setting I’ve ever used, and low everything else. The page took about 30 seconds to load, but when it did, I had all perfect thumbnails. And they’re already created, all the subsequent pageloads take less than a second.

    Thread Starter Kiwi1919

    (@kiwi1919)

    Hi Thom,

    Sorry for the late reply! I have the 2.2.5 update in place and it works perfectly!!!

    memory_limit: 64M
    max_input_time: 60
    max_execution_time: 30

    Code: [fileaway type=”table” heading=”File Directory” hcolor=”blue” textalign=”left” directories=”anything” thumbnails=”permanent” thumbstyle=”widesharp”]

    Thank you so much for all your help and patience!

    Plugin Author thomstark

    (@thomstark)

    Awesome, man. Yeah, the low memory_limit is why the transient version wasn’t working well for you, but glad the permanent is doing it’s thing for you. All the best.

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Thumbnails For Image Files’ is closed to new replies.