- This topic has 15 replies, 3 voices, and was last updated 5 years, 5 months ago by Tom.
February 21, 2016 at 10:00 am #174186Paul
I have the latest theme and addons plugin, but I am struggling to have the featured image on my posts “cropped” to a fixed height with auto width.
i.e. I have an image that’s 1600×1200, but I want to “crop” all featured images to 1200 x 300 (middle aligned)
I assumed I could set the featured image, and then use the header image settings to fix either the height (400px) and set the “hard crop”.
But any combination of these values does not give the desired result.
What am I doing wrong, Tom?February 21, 2016 at 10:34 am #174190Tony
I think (not 100% sure) this is something I have worked on with Tom.
If you put one of the measurements into the ‘Image Height’and 9999 or 0 into Image Width and enable hard crop it will size it and the the width will be proportional to the height.
It fails if you put a measurement in width and 0 in height.
I’m sure Tom knows about this.February 21, 2016 at 10:56 am #174195Paul
I’ve tried various combinations of 0, auto and 9999, and nothing has the desired effect. It’s either the case that I am not quite getting the combinations right, or it is not possible to do what I am wanting to.February 21, 2016 at 11:01 am #174196Paul
For example, I just tried:
Hard Crop Image Width: 1200px Image Height: 300px
… and all that happens is the image height is 300px and the width sized proportionately to 400px. i.e. the image is not “cropped” to 300px height (middle align vertical) at 1200px wide.February 21, 2016 at 11:17 am #174197Tony
Ah – I see, you are not wanting to crop it proportionally so it won’t do what you want using my method.
Over to Tom.February 21, 2016 at 11:43 am #174207TomLead DeveloperLead Developer
In order to use the sizing options in the Page Header metabox you need to upload your image through it as well – the sizing won’t work if you uploaded the image through the “Featured Image” metabox.
Let me know if that works or not 🙂February 22, 2016 at 7:05 am #174388Paul
I am on 1.2.79 of the GP Premium add-on.
I removed the featured image and added it through the Page Header metabox.
I set the hard crop to “enabled”.
I set the height to 300px.
I set width to 1200px, 9999px etc.
Bottom line, when I set the height to 300px, the width is always proportionately fixed to 400px.February 22, 2016 at 11:18 am #174454TomLead DeveloperLead DeveloperFebruary 22, 2016 at 11:19 am #174457Paul
I can Tom.
Am I at least expecting the right outcome with what I was trying? 🙂February 22, 2016 at 11:21 am #174461TomLead DeveloperLead DeveloperFebruary 22, 2016 at 11:22 am #174462Paul
So what am I doing wrong?? Should be a clean install on that domain… am I missing something?February 22, 2016 at 11:23 am #174464TomLead DeveloperLead Developer
I made some changes to the cropping in this beta version so lets see if it’s that first.
If not, I’m going to guess there’s a plugin interfering.February 22, 2016 at 11:23 am #174466Paul
Ok, my friend. Will try this later today!February 25, 2016 at 12:02 am #175056TomLead DeveloperLead DeveloperFebruary 25, 2016 at 8:30 am #175159Paul
Well I’ll be damned; the joys of multi-function plugins.
Thanks for the help, Tom … appreciate it!
- You must be logged in to reply to this topic.