I put the following code into my functions.php
file. It works!
add_filter( 'wp_image_editors', 'change_graphic_lib' );
function change_graphic_lib($array) {
return array( 'WP_Image_Editor_GD', 'WP_Image_Editor_Imagick' );
}
When this helps it is because it changes the PHP code module used for processing the uploaded image for use with WordPress.
This processing includes moving the image into the media library database and generating the different size images (“thumbnail”, “medium”, “large”) that WordPress always wants available for themes to access.
It causes the “GD” module to be used, because it is first. In some server setups, the newer “Imagick” library isn’t playing well with others for certain image scenarios, such as large pixel dimensions, so forcing the “GD” library to be used is a fix.
Related Posts:
- media_sideload_image generates blank?
- Password protect some uploaded files, so only logged-in users can view them
- Need clear explanation about medias/files/attchments
- How to retrieve alt attribute for an attachment (uploaded image)?
- Image still attached to post even after removing it as featured image
- How to bring files from the upload directory to the media gallery?
- Get images attached to a specific page
- After migrating media library is not showing thumbnails
- Adding attachment custom field metadata to TinyMCE tag
- controlling whether upload is attached to post or not
- Close featured image modal windows with JS
- How to Protect Uploads, if User is not Logged In?
- How to get image title/alt attribute?
- Extend Media Library
- How to set featured image to custom post from outside programmatically
- WordPress 3.5: Setting custom “full URL path to files” in the Media Library?
- Minimum Dimensions Requirement for Featured Image?
- Upload images to remote server
- How to show all available images in WP’s media library when using the Polylang plugin?
- Delete original image – keep thumbnail?
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- How can I bulk delete media and attachments using WP-CLI?
- Set Featured Image Front Frontend Form
- Which filters or actions to use after a media upload and delete?
- What plugin can I use to create a list / slideshow of featured images?
- Protecting direct access to PDF and ZIP unless user logged in (without plugin)
- Can I use the wp media uploader for my own plugin?
- How to wp_upload_bits() to a sub-folder?
- Change Media Uploader default directory
- How to hide media uploads by other users in the Media menu?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Differentiate Featured Image from Post Images upon Upload
- Where do the favicons for Media Files come from
- media_handle_upload for local files?
- Uploading Multiple Attachments From Front-End With A Description
- Is it possible to trigger some JavaScript when Media Popup is opened?
- How to call WP3.5 Media Library manager?
- How to crop thumbnail height to auto with set width
- Creating a metabox to upload multiple images, Ignoring The Featured Image
- media_sideload_image file name?
- Get all posts (of any post type) an attachment is used in
- How to get all files inserted (but not attached) to a post
- Image uploader with “Set Featured Image” link on front end
- Attach Files Metabox
- How to protect uploads in multisite if user is not logged in?
- Unattaching unlinked images
- How to change the naming of the resized image files
- Append button to WordPress Image Details modal
- Saving Custom Field in Attachment Window in WordPress 3.5
- Add Image Dimensions to Media Library Tab on Media Upoader
- Ignore a filter on the media library
- How do i upload an image and return the image id?
- WP3.5 Media Uploader – how to make it accept multiple images?
- How to Removing fields from the Media Uploader/Gallery on a Custom Post Type Edit Page
- Restricting access to files within a specific folder [duplicate]
- How to change _wp_attachment_metadata specific value in SQL?
- Set (featured) thumbnail for post?
- How to upload imagick resource to media in wordpress
- Media items hogging pretty permalinks
- Upload images and attachments from frontend form
- How can I get a different image size, if all I have is the link?
- Custom post type thumbnail / Media Library WP_DEBUG notice [closed]
- WordPress media upload “HTTP error”
- How to disable WordPress Media resize different size version?
- Delete all thumbnails for a post
- why when I try to insert an image attachment along with a post does wp_get_attachment_url give me a very wrong file path?
- How to set an attachments parent post id in code?
- Get attachments by user
- Get url from file uploaded in Media Library
- Restrict file types in the uploader of a wp.media frame
- Use wp_remote_get to add image to media library
- Media library storing files in uploads not folders within in uploads
- Adding File Extensions to Attachment Page Permalinks
- Add select field to media uploader that adds a class to the image
- How to host different file formats/types for a media attachment without creating multiple attachments?
- Replicate featured image functionality
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Different upload path per file type
- Hide upload image fields for the different media upload popups
- How do i show wordpress attachments from current post?
- Site icons with alpha channel for self-hosted WordPress blog network
- is it possible to force wordpress to always save thumbnails as ‘jpg’ not ‘png’
- How do I get allowed Media Library upload file extension list?
- Cannot upload .mp3 file to wordpress media
- HTTP Error when uploading files above 7mb unless using GD Image Editor
- Images not being generated at correct size
- How to fetch only media that was already attached to a post/page?
- Duplicate Custom Header Functionality into the post edit screen
- Audio file’s length (duration) is missing from Attachment Details in Media Library [closed]
- Force documents to appear in Featured Image dialogue
- How to replicate Media Library “Add New” on Plugin Settings Page
- Post edit – Media Library – Only get images from current post
- Attach media to multiple posts
- Switch between tabs on “Insert Media” dialog
- Use the WP media uploader dialog for uploading a form attachment (non-admin). Offering progress and drag and drop feedback
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Exclude featured image from attachment loop
- Cannot upload anything via wordpress
- How organize uploaded media in WP?
- Handling image uploads without thickbox