Imageproblems..

Posts: 15
Joined: 05/08/2008

Hi!

Take a look at my ste here:
svea.djuxe.com

Alrght, so i have a few products, but got a few problems aswell. Would be great if you could help me out on this one!

http://svea.djuxe.com/catalog/6/trdgrdsprodukter
This is how it should look. Product thumbnails are nice and neat

http://svea.djuxe.com/catalog/4/handredskap
Here somethng is messed up. See that one of the images didnt resize?
It's a bmp for a change (instead of jpg) isnt that ok?

Also I would like the images to be resized when viewed in full size (when clicked on) so they all have the same size. Is this possible? If so, where do i get this done?

Same with thumbnails, I would like the thumbnails to have the exact same size if this is possible.

If i were to change any image settings (for example resizing options) would they apply to the already uploaded files aswell or do i have to re-upload them?

Thank you for your time!

Posts: 70
Joined: 04/01/2008

From the imagecache docs:

E - Image toolkit

Imagecache depends on an image toolkit (see Administer > Site configuration > Image toolkit) to manipulate images. PHP's built-in GD2 toolkit only handles GIF, JPEG and PNG. BMP files are not manipulated at all, and served to the user in their original size.

If you need e.g. BMP support you could try the imagemagick toolkit.
http://drupal.org/node/224913

So, no. On your installation BMP files are not ok....

Happy coding!

Posts: 2244
Joined: 08/07/2007
AdministratoreLiTe!

To change what's displayed in the Thickbox window, you have to override the function that's displaying the image. At first, I thought it was still Ubercart's theme function, but then I saw the HTML for your page. Therefore, I can only give vague and general instructions about what to change. But that's OK.

Make a preset that will resize your images for viewing. In the image's theming code, hopefully overriding a function with your own theme, change the href attribute of the <a> tag surrounding the image(s). You'll probably want to use something like

<?php
  theme
('imagecache', $preset_name, $image['filepath'], $image['alt'], $image['title']);
?>

Hope that's enough to get you started in the right direction.