We have implemented one of the featured slider on our website home page. However, the thumbnail images showing are of low quality. The image on the original post are in high resolution. How can we fix this? We want the same quality as per the demo site.
Please go to Appearance → Customize → General Options → Manage Image Sizes From This Theme, then check all the "Disable image size..." options in this section.
After that, clear your site cache and check again.
Thanks for your inputs. We have disabled all the image sizing options. Cleared our website cache. However, there is no change in the image quality. It still shows the same. Refer to the attached screenshot. Are there any additional settings we need to update?
function penci_force_fullsize_images($out, $id, $size) {
// Check if the image ID is valid
if (!is_numeric($id) || $id <= 0) {
return $out; // Return original if invalid ID
}
// Check if we already have a valid output. If we do, we should not change it.
if(is_array($out) && !empty($out[0])) {
return $out;
}
// Attempt to get the full-size image URL
$image_url = wp_get_attachment_image_src($id, 'full');
// If a full-size image URL is found, return it
if ($image_url) {
return array($image_url[0], $image_url[1], $image_url[2], true);
}
// If no full-size image is found, return the original output
return $out;
}
add_filter('image_downsize', 'penci_force_fullsize_images', 10, 3);
I have the same issue here. I've done your suggestions (disabling all image resizing options) but it still featured slider shows low quality images.
I also tried the php code you've sent, via Code Snippet plugin, but it resulted in 500 server error, so I removed the code. As the php error log shows, it needs too much memory:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /wp-includes/post.php on line 7030
Can you suggest another solution rather than this?
Hello,
We have implemented one of the featured slider on our website home page. However, the thumbnail images showing are of low quality. The image on the original post are in high resolution. How can we fix this? We want the same quality as per the demo site.
Hi,
Please go to Appearance → Customize → General Options → Manage Image Sizes From This Theme, then check all the "Disable image size..." options in this section.
After that, clear your site cache and check again.
Regards,
PenciDesign.
Hi,
Thanks for your inputs. We have disabled all the image sizing options. Cleared our website cache. However, there is no change in the image quality. It still shows the same. Refer to the attached screenshot. Are there any additional settings we need to update?
Attached files: bij-disable.jpg
Hi,
You should paste this code into the function.php of the child theme or via the CodeSnippet plugin here: https://wordpress.org/plugins/code-snippets/
Regards,
PenciDesign.
Hi,
I have the same issue here. I've done your suggestions (disabling all image resizing options) but it still featured slider shows low quality images.
I also tried the php code you've sent, via Code Snippet plugin, but it resulted in 500 server error, so I removed the code. As the php error log shows, it needs too much memory:
Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 262144 bytes) in /wp-includes/post.php on line 7030
Can you suggest another solution rather than this?
Hi @Begum,
Please create a new ticket with your admin account, and I'll log in to help you configure it.
Regards,
PenciDesign.