Jump to content

Several product image aspect ratio


Recommended Posts

Hi,


I'd like to have several aspect ratio for my product pictures.


I'm selling both CDs and books. CDs are square and books are rectangles.


Something like that :


 


oIRIUa0N6bhFprTcZfbrJvl1ihwtXu.png


 


If I setup a square aspect ratio, books will look ridiculous with their white background on a blue page.


Basically, i'd like to have only the width of the corresponding image_type to be taken into account when resizing. The height would be proportional to the original picture.


 


 


What do you think would be the best approach to this ? I'd about to change all the controller resizing part but it might be a bit overkill. Is there an easier solution ? I couldn't find any module doing just that.


 


Thanks for your help,


Charles


 


Link to comment
Share on other sites

Thanks for your reply.

I don't see where I can do that in the admin. Moreover, that would be OK for single image products but let's say that I have several image formats for a single product (CD cover + wide double page + photo of the artist for instance). 

That would require several formats for a single product.

 

Thanks,

Charles

 

Link to comment
Share on other sites

That is a great idea, but i'm afraid that the "something" you're talking about is only "original size ratio".

Moreover I don't know the ratio of the images that would be inserted (that wasn't clear in my original post, my bad). Maybe someone will insert a 1000x200 px picture at some point. I can't predict all the image ratios that would be used.

Thanks for your brain time though, i really appreciate it.

 

Charles

  • Like 1
Link to comment
Share on other sites

  • 3 years 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...