Jump to content

Cropped Thumbnails


Adaron Mildoak

Recommended Posts

Hy all!

I'm new on this forum and using prestashop recently to develop an e-commerce site.

Great software but now I'm interesting in a custom feature that I can't find.

I've set the product thumbnail size to 150x150px and the top category image size to 800x200px.

 

Unfortunately prestashop doesn't crop the thumbnails so if I upload an image in 800x200 format, the resulting thumbnail for the category page is a white filled image with a really thin stripe centered containing my image.

I already have developed an indipendent image resize class that do exactly that, so I can set a custom ratio and my class resize and crop the original image at the desired ratio and gravity but I prefer to not touch the source of prestashop for future automatic update.

Is there a way to do what I want without hardcode my needs?

Thanks and sorry for my awful english.

Link to comment
Share on other sites

  • 1 month later...
  • 4 months later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...