WordPress.org

Ready to get started?Download WordPress

Forums

*.JPG files can't generate thumbnail (3 posts)

  1. wandererm
    Member
    Posted 6 years ago #

    *.jpg can be uploaded and generate thumbnail file normally,

    but *.JPG only be uploaded without generating thumbnail file.

    So is it a bug?

    Or I have to modify it by myself?

    P.S. English is no my mother tongue, sorry for my poor English.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    No, WordPress is doing a case insensitive match for jpg when checking types. It will recognize either jpg or JPG and generate thumbnails for it.

    There's other things that can stop thumbnail generation though:
    - There's a maximum size limit. If the image is greater than 3 megapixels, it will not try to generate a thumbnail (due to normal PHP memory constraints on most hosts).
    - If PHP does not have the proper image handling libraries loaded/installed for that image type, it won't try to generate a thumbnail.
    - If the image libraries don't recognize the file as a properly made image (regardless of the extension), then it won't try to generate a thumbnail for it.

  3. wandererm
    Member
    Posted 6 years ago #

    Thanks for your explanation in detail.

    The problem is resulted by maximum size limit.

    Thanks again. :)

Topic Closed

This topic has been closed to new replies.

About this Topic