Bug on image category?

3.84K viewsIssues
0

Hi,

I think there is a problem with the display of the image category which gets blurred.

My image is 1140px wide and 350px high (and I even completed the image definition so). The img src code is as follows:

<img class=”attachment-900×350 size-900×350 src=”https://allwewish.org/wp-content/uploads/2017/01/Je-voeu-Dire3f4-JPGSupé.jpg alt=”” srcset=”https://allwewish.org/wp-content/uploads/2017/01/Je-voeu-Dire3f4-JPGSupé.jpg 1140w, https://allwewish.org/wp-content/uploads/2017/01/Je-voeu-Dire3f4-JPGSupé-300×92.jpg 300w, https://allwewish.org/wp-content/uploads/2017/01/Je-voeu-Dire3f4-JPGSupé-768×236.jpg 768w, https://allwewish.org/wp-content/uploads/2017/01/Je-voeu-Dire3f4-JPGSupé-1024×314.jpg 1024w, https://allwewish.org/wp-content/uploads/2017/01/Je-voeu-Dire3f4-JPGSupé-150×46.jpg 150w, https://allwewish.org/wp-content/uploads/2017/01/Je-voeu-Dire3f4-JPGSupé-500×154.jpg 500w sizes=”(max-width: 900px) 100vw, 900px width=”900 height=”276>

And I think that category from anspress is resizing it somehow from the original size to 900×300 and then display it with the correct dimensions making it blurred.

The code shown hereabove is after adapting plugin/category-for-anspress/theme/category.php

from:

<?php if( ap_category_have_image( $question_category->term_id ) ): ?>
<div class=”ap-category-feat” style=”height: 300px;”>
<?php ap_category_image( $question_category->term_id, 300 ); ?>
</div>
<?php endif; ?>

to:

<?php if( ap_category_have_image( $question_category->term_id ) ): ?>
<div class=”ap-category-feat” style=”height: 350px;”>
<?php ap_category_image( $question_category->term_id, 350 ); ?>
</div>
<?php endif; ?>

I also desactivated optimisation tool photon from jetpack to doublecheck (it is supposed to act only on posts and pages) but the results is still as hereabove… and blurred.

0

OK the blur effect was coming from photon… I had to clean all caches to check.
Sorry