Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] Disable resizing of featured image in GP 1.5

Home Forums Support [Resolved] Disable resizing of featured image in GP 1.5

Home Forums Support Disable resizing of featured image in GP 1.5

  • This topic has 3 replies, 2 voices, and was last updated 6 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #419584
    Jakub

    Hi,
    today I updated to GP 1.5 which has new resizer for archive thumbnails (which is great) but also for posts featured image. Problem is, that all featured images I upload in same exact size. New resizer creates another file for example: “image-758×426.jpg” but my original “image.jpg” is already 758x426px, there is no point to duplicate that file.

    Is there any option how to disable that? I tried put 0 in customizer and leave it blank, but is seems still creating some additional files.

    #419605
    Tom
    Lead Developer
    Lead Developer

    Images shouldn’t be touched by the resizer as long as the values are empty in Customize > Layout > Blog > Featured Images.

    Do the single post featured image options have any values?

    #419704
    Jakub

    It’s what I thought but field has placeholder “Automatic” and I was still seeing another sources in html. I tested it all over again and I found that only if image is larger there is generated smaller version in “srcset”.

    It confused me. I found that srcset resized images are handled by WordPress itself (right?), so it’s not GP issue.

    Thank you for help.

    #419718
    Tom
    Lead Developer
    Lead Developer

    That’s correct – srcset was introduced in WP 4.3 (I believe). It’s a good thing, as it makes your images more responsive/increase performance 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.