WordPress.org

Ready to get started?Download WordPress

Forums

Thumbnail creation (4 posts)

  1. mike
    Member
    Posted 8 years ago #

    Does wp_create_thumbnail have a file size limit? It is "blanking out" when the files are too big. The file uploads (sometimes 2MB +), but no thumb is create and after the admin menu shows with nothing below it.

    Yes, I set php.ini for huge files. I am worried that it is a PHP problem.

  2. mike
    Member
    Posted 8 years ago #

    More info:

    after a lot of testing, the issue seems to be jpegs > 1386px wide. The function wp_create_thumbnail dies if I try to create a thumbnail of such an image size (file size seems unimportant) right at:


    $thumbnail = imagecreatetruecolor($image_new_width, $image_new_height);

    My GD version (bundled (2.0.12 compatible)) is fine. Any ideas would be very helpful!

  3. alexwein
    Member
    Posted 8 years ago #

    Look at 2 things:

    1) wp-admin/inline-uploading.php line 81 has a test that does not allow creating of thumbnails for very large files. I don't know why it's there; maybe it's trying to prevent GD from crashing. If you use ImageMagick, you can safely change this condition to "if (true)" :-).
    2) In any case, GD is pretty crappy, and I suggest using ImageMagick instead. I outlined how to use ImageMagick in detail in my other post - http://wordpress.org/support/topic/53019

  4. tagesk
    Member
    Posted 7 years ago #

    Running 2.0.5 without any modification. This is very annoying, as 1300 pixles isn't much at all today. What is the "official" way (if any) to deal with this problem (thumbs not getting generated)? Do I need to shrink all images, insall a plugin (ImageMagic?), edit the sources, all the above, or what?

    In any case: Keep up the good work!

Topic Closed

This topic has been closed to new replies.

About this Topic