Posted by jaarong on January 13, 2011 at 2:56pm
When we post the main image into an article in OpenPublish that has portrait dimensions, it ends up being way too big (in our humble opinion) in the article view. For landscape pictures, it works nicely. Some of the pictures are sent to us and can't be cropped to landscape proportions. What's the best solution within OpenPublish or Drupal to fix this?
Comments
Check out the imagecache
Check out the imagecache property of the image.
Imagecache is what crops/scales the main image.
-Ronald
Yeah, I've done this, it's
Yeah, I've done this, it's scaling to 400px width. You can't simply change the imagecache proportions because the image description div also has a fixed width at 400px. I could definitely float it and not give it a width, but I'm wondering why this was done like this.
I'm considering using something like the Insert module and giving the user a choice between a Portrait imagecache size and a Landscape size, but again, I am wondering what the pitfalls are. I've been trying to stay within the boundaries of the Openpublish system so that I don't have as many problems on upgrades and various configuration changes that may occur.