Troubleshooting NextGEN Gallery Image Resizing and Artifact Issues
Content
Many NextGEN Gallery users encounter problems where images appear distorted, pixelated, or have strange color artifacts after the plugin resizes them to create thumbnails or other sizes. This guide will explain why this happens and provide the most common solutions to fix it.
Why Do Resizing Artifacts Happen?
Based on community reports and investigations by the 'Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery' team, these issues are often linked to the ImageMagick (Imagick) image processing library on the server. Incompatibilities between certain Imagick library versions (particularly 3.5 and above) and the plugin can cause images to be processed incorrectly, leading to a reduced color palette, distortion, or artifacts.
Common Solutions
1. Disable the Imagick Module
The most frequently suggested workaround is to disable NextGEN Gallery's use of the Imagick module. This forces the plugin to use an alternative image processing library (likely GD).
- Access your website's files, typically via FTP or your hosting provider's file manager.
- Locate and edit the
wp-config.phpfile in the root directory of your WordPress installation. - Add the following line of code above the line that says
/* That's all, stop editing! Happy publishing. */:define('NGG_DISABLE_IMAGICK', true); - Save the file and upload it back to your server if necessary.
Important: After applying this fix, you must regenerate your images for the changes to take effect.
2. Regenerate Image Thumbnails
Whether you change the Imagick setting or not, corrupted images need to be regenerated. You can do this in two ways:
- Per Gallery: Navigate to Galleries -> Manage Galleries. Click on a specific gallery, then select the images and use the "Create new thumbnails" option.
- Global Cache Clear: Go to NextGEN Gallery -> Other Options -> Miscellaneous. Click the "Clear image cache" button. This will cause all images to be regenerated the next time they are viewed, which may temporarily slow down your site.
3. Check Thumbnail Crop Settings
If images are distorted (stretched or squashed) but not pixelated, the issue may be with the thumbnail cropping settings. To ensure consistent sizing:
- Go to Gallery -> Gallery Settings.
- Modify your default settings by enabling "Override thumbnail settings".
- Choose a specific size for your thumbnails and set "Thumbnail crop" to "Yes".
- Save changes and clear your image cache (as described above) to regenerate all thumbnails with the new settings.
What If These Solutions Don't Work?
If the problem persists, it can be helpful to provide specific details when seeking help from the community. The 'Photo Gallery, Sliders, Proofing and Themes – NextGEN Gallery' team has requested that users experiencing Imagick-related issues report their Imagick library version. You can find this information by going to Tools > Site Health > Info in your WordPress dashboard, clicking "Copy site info to clipboard", and then pasting that information into a text file to find the Imagick version.
By following these steps, most users can resolve image quality and display issues related to NextGEN Gallery's image processing.
Related Support Threads Support
-
clients can’t download imageshttps://wordpress.org/support/topic/clients-cant-download-images/
-
watermark not being removedhttps://wordpress.org/support/topic/watermark-not-being-removed/
-
link pic to url and description of pichttps://wordpress.org/support/topic/link-pic-to-url-and-description-of-pic/
-
Issue when resizing image: Artefacts are createdhttps://wordpress.org/support/topic/issue-when-resizing-image-artefacts-are-created/
-
Images not being croppedhttps://wordpress.org/support/topic/images-not-being-cropped/
-
Once Pro is activated, images linked to other pages don’t workhttps://wordpress.org/support/topic/once-pro-is-activated-images-linked-to-other-pages-dont-work/
-
Images same box sizehttps://wordpress.org/support/topic/images-same-box-size/
-
Thumbnail size changes after a plugin updatehttps://wordpress.org/support/topic/thumbnail-size-changes-after-a-plugin-update/
-
Imagely 2.0 Upgradehttps://wordpress.org/support/topic/imagely-2-0-upgrade/
-
Latest Updatehttps://wordpress.org/support/topic/latest-update-62/
-
Help with image downloadshttps://wordpress.org/support/topic/help-with-image-downloads/
-
larger images not showinghttps://wordpress.org/support/topic/larger-images-not-showing/
-
No webp is being used in gallerieshttps://wordpress.org/support/topic/no-webp-is-being-used-in-galleries/
-
Pixelationhttps://wordpress.org/support/topic/pixelation/
-
Tooltips showing filename instead of Titlehttps://wordpress.org/support/topic/tooltips-showing-filename-instead-of-title/
-
Image resize not workinghttps://wordpress.org/support/topic/image-resize-not-working-4/
-
Distorted Portfolio Thumbnails in NextGEN Galleryhttps://wordpress.org/support/topic/distorted-portfolio-thumbnails-in-nextgen-gallery/
-
Class “C_NggLegacy_Thumbnail” not found when clicking on the download linkhttps://wordpress.org/support/topic/class-c_ngglegacy_thumbnail-not-found-when-clicking-on-the-download-link/
-
Cannot download images after a salehttps://wordpress.org/support/topic/cannot-download-images-after-a-sale/
-
With the Imagify plugin, large photos remain in JPG and not in WebP.https://wordpress.org/support/topic/with-the-imagify-plugin-large-photos-remain-in-jpg-and-not-in-webp/
-
all galleries messed up after last plugin updatehttps://wordpress.org/support/topic/all-galleries-messed-up-after-last-plugin-update/
-
Photos in post distorted when viewed with smartphonehttps://wordpress.org/support/topic/photos-in-post-distorted-when-viewed-with-smartphone/
-
Imagify optimize does not work?https://wordpress.org/support/topic/imagify-optimize-does-not-work/