HTTP error when uploading large size images - wordpress

I am trying to upload an image using the WordPress Media Uploader (WP Admin > Media > Add new). Smaller size image up to 460kb uploading fine without any error. But when i try to upload large size image it showing HTTP error. I have tried adding the below line in wp-config file. But No luck :(
define('WP_MEMORY_LIMIT', '64MB');
Anyone have idea on this. Please help me.
I have attached screenshot too
Thanks..

In your wordpress dashboard go to Settings -> Media. There you have different sizes (width x height) defined for Thumbnails, Medium Size and Large. By default, for large wordpress has a size of 1024 x 1024. If you try to upload a bigger resolution image like 4096 x 2048 let's say, you'll get an error. Try increasing the resolution for the Large images and try again and see if that works. Check phpinfo() for memory_limit settings on your server. If it's limited to some amount at the server level, setting it on wp-config.php won't really help.

Related

Is it possible to reduce the size of preview png files in Ant-Media Server?

I need to reduce the size of png file of the previews but i didn't see any option related to that in dashboard. Is there any way to do that?
You can change settings.previewHeight setting in /AMS-FOLDER/webapps/<Application-Name>/WEB-INF/red5-web.properties aka App Settings. Default value is 480

Wordpress isn't generating image thumbnails for image size over 1 MB

I have a developed a wordpress website by installing a pre-developed theme from themeforest.net. When i try to upload an image, the image successfully uploads but the preview/ thumbnail isn't generated only for file sizes over 1 MB. The max file size i can upload is 8MB. Please Help!
I tried uploading increasing memory and execution caps. Nothing worked.
You're not giving a lot of information, so I'm suggesting a work around.
Reduce the size of your images with cropping them to the needed size. Compress JPG and PNG images.
Online Image Compression

Wordpress Upload : File size must be at least 512 KB?

I try to import a PDF file on my wordpress uploader. And, Wordpress tell me that :
"File size must be at least 512 KB."
My pdf is too small ! I know how to increase the upload limit size on Wordpress, but not how to decrease the upload file limit.
I found nothing on google or here. Is someone have already had this issue ?
Thank you,
I found the solution. The limitation of the pdf size file was set on 512kb for the Contact 7 Form I've made. :)

wordpress how to change original image quality during upload (jpeg)

I using plugins and trying find it in source code WordPress, but i can only change quality for thumbnails. I need 30-40% quality jpeg images instead 90% (default)
go to media upload. You can change size of image you upload.

WordPress generating empty files for certain image_size's

Running into a weird situation where WordPress generates all the proper files for the various image sizes, however is generating an empty file for two of the bigger image_sizes. Here's a screenshot of the files that are being created. You can see that the two highlighted files in that screenshot have a file size of zero.
Here's the WordPress code for my image_sizes:
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size(380, 280, true);
add_image_size( 'ms-feature-downsized', 1260, 700, true);
add_image_size( 'ms-feature', 2000, 1111, true); // creating empty file
add_image_size( 'ms-cover', 2000, 3000, false); // creating empty file
This is unique to this installation. I've tested the same theme and images locally, with the same plugins, and the images get properly created.
The server WordPress is running on has the following setup:
PHP Version 5.4.28
memory_limit: 256M
upload_max_filesize: 64M
imagick module version: 3.1.0RC2
ImageMagick version: ImageMagick 6.7.6-8 2012-05-02 Q16
GD Support: enabled
GD Version: bundled (2.1.0 compatible)
Any thoughts on why these image sizes are being created as empty files?
This unfortunately will not necessarily solve your problem but its helpful and worth knowing.
For all the crop sizes specified in your theme that are larger than that of the image size being uploaded, WordPress will skip over these and not process them.
This applies for both width and height, the image being uploaded must be both as tall and as wide as the specified crop sizes to be processed and cropped. Any smaller than your specified crop sizes and it wont be cropped.
Logical - crop is there to make the image smaller, not to stretch and make it bigger.
In the case that WordPress does not process and crop this image because it is smaller than the set crop size and you are calling it in your theme or plugin, WordPress will return the original image uploaded as a fallback.
Hope this helps you or someone else at some point...

Resources