Support » Fixing WordPress » Uploading Large Images

  • I’m having trouble uploading large images to a website.

    – The server’s memory upload limit has been increased to 64mb.
    – The image I’m trying to upload is 3264×2448 and is 2mb in size.
    – When I attempt to upload the image, the progress bar gets to 100% and I then get the following error message: “An error occurred in the upload. Please try again later.”
    – The image actually uploads, but the problem comes with thumbnail creation. It’s simply not happening.

    add_image_size( 'gallery-thumb', 150, 150, true );

    Is the image size that needs to be cropped upon image upload.

    Any idea what the problem could be? This only happens with bigger images. Smaller ones (say around 800px wide) upload perfectly.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you uploading images in the admin section or is this a custom plugin?

    Thread Starter Tim

    (@nitrammit)

    Just through the admin section. Edit page > add new media.

    Did you try clearing your browser cache? It might be a temporary memory issue while its creating the thumbnail. I don’t see anything in the code limiting the file dimensions.

    Thread Starter Tim

    (@nitrammit)

    Problem solved. I needed to increase my PHP memory limit.

    Added the following line to my .htaccess file.

    php_value memory_limit 128M

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uploading Large Images’ is closed to new replies.