Thumbnail Image Size Bug?

In the back end administration tab > thumbnailes settings page, there is an option for sizing the thumbnails. I have entered 120 x 120 for the category thumbnails. But when I go to the category page, the thumbnails are 85 x 85. Is this a bug?

Try to leave empty field "Thumbnail width on product list page (leave empty to use original size) " in Settings: Appearance.

nope, they’re still 85 x 85. I know how to go into that template and change the width, but why have a setting in the back end if I have to into the template?

Looking through the code, most of the templates are still using:



$settings.Appearance.thumbnail_width



instead of:



$block.properties.thumbnail_width





Which means, you have to change the “Appearance settings”.



Go to the admin controls.



Select “Design–>Appearance settings”.



Change the settings for:





Thumbnail width on product list page (leave empty to use original size)

Ok, then what do the thumbnail settings under Administration Tab > Thumbnails control?

[quote name=‘knoxbury’]Ok, then what do the thumbnail settings under Administration Tab > Thumbnails control?[/QUOTE]



The product thumbnail size will control the product thumbnail size in the product details page.



The category thumbnail size will control the category thumbnail size.





:wink:

[quote name=‘hykit’]The product thumbnail size will control the product thumbnail size in the product details page.



The category thumbnail size will control the category thumbnail size.





;)[/QUOTE]

But the category thumbnail size does NOT control the category thumbnail size. That’s why I started this thread in the first place. And if you read through the posts, you’ll see that to change the category thumbnail size, you need to go into the Design tab > appearance settings. But that does not explain what the category thumbnail size is for under the Administration tab > Thumbnails settings.

Not sure if it’s a bug or a limitation.



But once the category or product thumbnail image has been created, the size is set in the database.



Only newly create thumbnails would reflect the new thumbnail size settings.







You can generate thumbnails on the fly by modifying your templates.



So for categories, the template would be:



views/categories/view.html



Update this part of the code:



```php



{include file=“common_templates/image.tpl” show_detailed_link=true images=$category_data.main_pair object_type=“category” no_ids=true class=“cm-thumbnails”}



```



to include the width and height of the thumbnail you want to create:





```php


{include file=“common_templates/image.tpl” show_detailed_link=true images=$category_data.main_pair object_type=“category” no_ids=true class=“cm-thumbnails” image_width=$settings.Thumbnails.category_thumbnail_width image_height=$settings.Thumbnails.category_thumbnail_height show_thumbnail=‘Y’ }



```

Thanks, but that still doesn’t explain what the purpose of the category thumbnail size settings under the Administration tab. That was the original goal of this thread.

[quote name=‘knoxbury’]Thanks, but that still doesn’t explain what the purpose of the category thumbnail size settings under the Administration tab. That was the original goal of this thread.[/QUOTE]



Yes it does. Read my post carefully on how to generate thumbnails on the fly based on those settings.



Did you not notice?



image_width=$settings.Thumbnails.category_thumbnail_width



image_height=$settings.Thumbnails.category_thumbnail_height





Once you updated your template, the width and height you enter in the Administration control, will be the width and height of the thumbnail images for the category.

I understand I can hack the code . . . but I don’t think that was the intended design by the CS-Cart dev team. They wouldn’t include a setting that requires a hack to make it work. There has to be more to the story.

[quote name=‘knoxbury’]I understand I can hack the code . . . but I don’t think that was the intended design by the CS-Cart dev team. They wouldn’t include a setting that requires a hack to make it work. There has to be more to the story.[/QUOTE]



The settings are use for generating thumbnails. You don’t need to hack anything.





The settings are use for generating thumbnails. Once the thumbnails have been generated, it won’t get generated again unless you specifically call a new thumbnail to be generated, as I did with the template modification or what you called “a hack”.



The settings are use for generating thumbnails. If there isn’t an existing thumbnail, a new thumbnail will be created using the settings. If a thumbnail already exist, no thumbnail will be created.



Say my setting is 120x120.



Product A thumbnail was created with that setting of 120x120.



I change my setting to 150x150.



Product A already has a thumbnail, so the thumbnail being displayed is 120x120.



Product B has no thumbnail, so a new thumbnail is created using the setting 150x150.



I change my setting to 200x200.



Product A will always show a 120x120 thumbnail.



Product B will always show a 150x150 thumbnail.



Any newly created thumbnail will use the current setting of 200x200.





Again,



The settings are use for generating thumbnails.

Ok, we just disagree. I think you’re wrong and you think I’m wrong. My only point is that the category thumbnail image settings do NOT work correctly unless there is further revision of the code. This is a FACT.

I think you are just being difficult.



I was trying to be helpful.



No, I’m not wrong. I’m just explaining how it works.



The category thumbnail image settings DO WORK. It just doesn’t work the way you want it to.



If it doesn’t work the way you want it to work, then it must be wrong in your mind, and everyone who disagrees with you is wrong as well.





Why don’t you make those changes to your template as I have suggested and stop being so uptight about it.



My suggestion would make it work the way you want it to work.



Since a simple update to the template will make it the way you want it to work, then why keep complaining about it?

I understand you’re trying to be helpful, but I’m trying to address what I consider a bug in a beta version of 2.0. I am unable to change the category thumbnail sizes using the thumbnail settings fields (without code hacks). To me, this is a bug.

I know its an old post but i was getting confused about this too and it took me a while to figure out where to change the thumbnail size as the setting wasnt within the thumbnail settings for some strange reason.



Go to the admin controls instead and change the 85 to whatever…



Select ‘Design’ - ‘Appearance Settings’



Thumbnail width on product list page (leave empty to use original size)



i think the category thumbnail size within the thumbnail settings applies to the actual image you give to a category - not the products within that category.



it is a bit confusing though. it would make a lot more sense to have all of the thumbnail settings in one place under the thumbnail settings section.

^^I agree with you, why couldn’t they include all the thumbnail in one page I have no clue but this did the trick as IE was displaying the resized image with jagged edges :confused:

Wow a thread back from the dead.



But in case it matters.



Surely it works as intended by design.



By setting the thumbnail and not changing it on the fly I can have different thumbnail sizes for different categories and in a similar way product images. So as I want for each one.



Which is what I want - even though it might not suit everyone.



They can have all the same if they want with the current situation.

I could not have what I wanted if they had their way.

I’m assuming you have uploaded full size images and are relying on CS-Cart to generate the thumbnails for you based on the size you specified in admin->settings->thumbnail.



When you do this, it creates a a thumbnail_your image name file in store/images/products for the product pages (and I think images/thumbnails or categories for category) and that is what gets used.



The problem is that if you set this size, or new size, AFTER you have created your products, it DOES NOT recreate a thumbnail. Therefore whatever is in that folder is what always gets used, even if your current settings are 50x50 or 400x400.



What I would do is go into your actual folders and open those photos, I’m pretty sure they will be the exact size that are showing up in your thumbnails.



How to get new thumbnails? Delete the thumbnail_image files in your various folders, update the size you WANT them to be in the admin-settings, and then go to catalog-products-global update(top left), check “regenerate thumbnails”, then hit “add products” and select all. That should do it…you prob dont have to delete first, but I usually do just to be sure.



Hope it helps…



-Joe