rachelfwells / Moodie-Outdoor

Moodie Outdoor Products Website
0 stars 0 forks source link

Image size #29

Closed rachelfwells closed 10 years ago

rachelfwells commented 10 years ago

Hi Sam, can you advise if its possible to automatically constrain the image size of pictures? Clint's uploaded some really large ones and they look odd. I could show him how to resize them in photoshop but it would be easier if Wordpress can automate this? Perhaps there's a widget?

So two things -

• the size of image that shows up in the individual product page gets cropped if its too large. Can the image be scaled to fit the box?

• also can the enlarged lightbox picture be capped at either 700 pixels wide or high?

Let me know your thoughts?

Rach

samadd commented 10 years ago

Yes - Wordpress generates set sizes of all images on upload. I can set these defaults if you have a particular size in mind?

samadd commented 10 years ago

Can you point to an example of these errant sizes? Thanks.

samadd commented 10 years ago

Lightbox image capped.

rachelfwells commented 10 years ago

On the product page before you go to light box view can we have the image fit to the window and be fully visable? Some images are wide and so the edges get chopped off. Some images are really long and get stretched. I'll send links and screen grabs

rachelfwells commented 10 years ago

http://rachelwells.com.au/moodiedev/?product=x-last-bollard-base-d150

see how the lightbox image shows more widt screen shot 2014-04-19 at 10 21 23 am h than the initial page view?

rachelfwells commented 10 years ago

but then we have the problem of a page like this where the image islong and thin. Any suggestions welcome

http://rachelwells.com.au/moodiedev/?product=moodie-osa-blaxland-bollard-with-ss-cap

samadd commented 10 years ago

The problem is with the variation in sizes of the source images. There isn't really one catch-all setting that's going to handle every case ideally, given the range in dimensions.

The thumbnail setting is using 'hard crop', which results in what you see in that page. I've tried disabling it, too see if the results are better, but this involves regenerating all images, which at ~1600 images, is time-consuming. There is a plugin that does it automatically, but I need to keep a page open while it does this, and averages about 2 seconds per image. So that's about an hourish. If it doesn't work out, I could change the standard image size to something more square, which might make some cases (such as the above) look better.

samadd commented 10 years ago

That's the thumbnail regen process complete, and the X-Last Bollard image displays correctly. That's not to say that other images will be okay - will need to check throughout the products to see how they are affected.