Reply To: Change size of page featured image

Home Forums Support Change size of page featured image Reply To: Change size of page featured image

Home Forums Support Change size of page featured image Reply To: Change size of page featured image

#97215
dmendana

Hi Tom,

First, thank you for being so kind to share this in advance. I’m not using Page header or GP Premium addons, so far I’m using Blog and Colors and considering a few more.

I have tested the code you suggest and I don’t understand its behaviour. So, I’m using this image for a header that is 1984×1488. One of the reasons I’m interested in changing the size is that my headers are 300-400px high, so there are big savings to be made.

Now let’s see how the new code behaves.

Values I set in the function >> Image downloaded in the frontend

  • $width=100 , $height=9999 >> 150×150
  • $width=200 , $height=300 >> 200×200
  • $width=200 , $height=9999 >> 200×200
  • $width=1200 , $height=9999 >> 1984×1488
  • $width=1200 , $height=300 >> 400×300

While these are the sizes of the downloaded imagen, the size it is displayed differ. So the 1200px width value downloads an uncropped image 1984px wide, but then displays it 1200px wide.

I am quite confused by all this. I would like to reduce and crop the images to something like 1800×400. But I don’t really understand how it is supposed to work.

Thank you again for all this help.