Ubercart Product Images To Small - How to change Thumbnails size

Project:Ubercart Contributions
Component:Code
Category:task
Priority:normal
Assigned:davidcomelli
Status:active
Description
Project: 
Ubercart

Does Any One know how to change the default uploaded product image size.

I need the product image to be at least double the size it is now.

I'm using Drupal 5. and Ubercart 5.1.0-beta2

Thanks

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15422
Re: Ubercart Product Images To Small

David, check out your image cache settings at /admin/settings/imagecache. There are presets in there that specify sizes. You can change any of the default sizes defined by Ubercart to adjust the images. Smiling

davidcomelli's picture
Offline
Joined: 02/08/2008
Juice: 13
Nice!!
Assigned to:Ryan» davidcomelli

Sorry for the dumb question.

Extremely appreciative for the quick response.

Dave

keyone's picture
Offline
Joined: 10/01/2008
Juice: 95
Re: Ubercart Product Images too small.
Assigned to:davidcomelli» keyone

I found this thread by searching for how to change product sizes. I see I can change the thumbnail sizes here, but how do I change the size of the full size image that appears when you click on the thumbnail? That is too small for my needs and I don't see that setting anywhere. Thanks!

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6841
Re: Re: Ubercart Product Images too small.
Assigned to:keyone» Lyle

That should be the actual size of the image. Upload bigger pictures, and the thickbox images will be bigger.

keyone's picture
Offline
Joined: 10/01/2008
Juice: 95
Re: Re: Ubercart Product Images too small.
Assigned to:Lyle» keyone

Thanks. I guess the image shown in the thickbox is the actual size I uploaded, but it is being dynamically resized within the page, which makes it look crappy. I'd rather have the user scroll and see a good image, than not scroll, and have a crappy image fit within the window. Any way to fix? URL in question is http://justforcnas.com/node/1
(Click on second image to see how bad it looks)

I found the thickbox admin screen, but it doesn't let me specify anything about size of image displayed...?

    Thickbox options
    Enable for image nodes
    Automatically activate Thickbox for all image nodes (requires the image module).
    Enable for login links
    Automatically activate Thickbox for links to user/login.
    Deactivate Thickbox on specific pages:

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: Re: Re: Ubercart Product Images too small.
Assigned to:keyone» torgosPizza

What I did is create a preset called "Enlarged" or something, and then in my product template (either using Contemplate or just node-product.tpl.php) and set the link for thickbox to something such as..

<a class="thickbox" href="/files/imagecache/enlarged/files/FILEPATH.jpg"><full screen img></a>

Of course change your "enlarged" path to whatever you call your preset. You'll also need to pull the filepath from the $node object (if you're not already). I think it's $node->field_image_cache[0]['filepath'].

--
Help directly fund development: Donate via PayPal!

blowemp's picture
Offline
Joined: 01/26/2009
Juice: 5
#7
Assigned to:torgosPizza» davidcomelli

In D6 Ubercart 2 I believe the image size is changed under

Administer -> Site Building - > Image Cache

admin/build/imagecache/

geyids's picture
Offline
Joined: 10/10/2010
Juice: 5
#8

Those Image Cache presets cannot be edited. How do I go about that?

daylight-chaser's picture
Offline
Joined: 10/05/2010
Juice: 2
#9

I was having the same problem, the presets do not look like they are editable. From the list of presets, hit 'view' then 'override', you should be able to edit the preset then.

Hope that helps.

geyids's picture
Offline
Joined: 10/10/2010
Juice: 5
#10

Thanks @daylight-chaser for the response but I had figured that later after posting this.

CHeers

buysnakewine's picture
Offline
Joined: 03/31/2009
Juice: 104
#11
Title:Ubercart Product Images To Small» Ubercart Product Images To Small - How to change Thumbnails size

Hi, and thank you, i couldn't find where to change the thumbnails size on Drupal 6, and it's where you said:

admin/build/imagecache/

(and if you use admin_menu module, the option is under SITE BUILDING -> IMAGE CACHE

Cheers.

BigMike's picture
Offline
Joined: 10/20/2008
Juice: 1053
#12

@blowemp #7 : Thank you very much for the tip. I converted my PHP from suPHP to DSO and it altered a ton of permissions which caused Drupal to start sucking gallons of canal water. It was a mess. When I finally got the permissions sorted out, then ImageCache gave me the "File exists" blabla "imagecache.module" blabla "line 555". The fix for me was to uninstall ImageCache (proper uninstall) and reinstall (went with 2.0-beta10) and cleaned out the temp folders and table cache.

Then I finally got the error taken care of, but when I uploaded new images through node/####/edit, both the catalog and the product view image sizes were off. So I went to admin/settings/image/nodes where I could specify a thumbnail size, but this didn't have any affect. I then searched around and found your ImageCache preset tip to admin/build/imagecache where I had to override the default sizes and enter in what I need for "product", "product_list", and "uc_category", the last being used by some Views I have.

Then it still wasn't working so I used the Flush feature of the ImageCache presets which rebuilt all images to the overridden sizes I specified and WA-LA!

WHEW. Slight panic there =)

Regards,
BigMike