WordPress.org

Ready to get started?Download WordPress

Forums

WordPress image upload - original not stored (2 posts)

  1. MikeHarris
    Member
    Posted 1 year ago #

    Hi guys,

    I'm having some trouble with image uploads on the latest version of WordPress. I have defined a set of custom sizes in my functions.php file as follows:

    add_image_size( 'product_testimonial', 662, 366, true );
    add_image_size( 'product_image_listing', 120, 290, true );
    add_image_size( 'product_image_detail', 290, 700, true );

    When I upload an image (with dimensions 2000 x 2000) the following 3 files are created:

    \wp-content\uploads\20127\My-Test-662x366.jpg
    \wp-content\uploads\20127\My-Test-120x290.jpg
    \wp-content\uploads\20127\My-Test-290x700.jpg

    But nothing else ... the original is not stored anywhere. This is a problem because I want to offer the full, hi-res version as a download to my users.

    Does anyone know why this would be happening? I've built 7 or 8 different WordPress sites and never had this problem before. I guess its either a bug in the most recent version, or (more likely) something about my config is wrong.

    Any help would be much appreciated.
    Thanks, Mike

  2. MikeHarris
    Member
    Posted 1 year ago #

    UPDATE:

    If I remove my 3 add_image_size calls the original photo is successfully uploaded and the standard thumbnail, medium and large versions are generated. Makes me think its more likely to be a WordPress issue ....

    Any help would be much appreciated :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.