Jump to content

Access to original image rather than to backend sizes


Recommended Posts

Hey.

Instead of references like:
{$product.cover.bySize.medium_default.url}
which correspond to eg. the following file:
123-medium_default.jpg

How to access the original file 123.jpg? The $product variable doesn't seem to contain its URL.

Edit: alternatively, more generally, my issue is that I want images' full sizes to show after clicking the product picture on product page. I tried defining a huge size (like 2000/2000 px) in the backend, calling it eg. 'maximum', and having the theme open it, like this: {$product.cover.bySize.maximum.url}, but upon generation of this size, it turned out that Presta pads original images with white -- that is, that a size's defined dimensions are strictly enforced, rather than being a mere limit that is not to be exceeded.

Edited by AJ1234 (see edit history)
Link to comment
Share on other sites

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...