Show full item image in tile instead of cropping top and bottom to fit #715
Replies: 4 comments
-
I think the best option is having a per image option of whether the image should use contain or cover with the same current default? If we do go with it being an option we could add an inventory action to convert all current images to either option and add the ability to change the default in browser. |
Beta Was this translation helpful? Give feedback.
-
Well, most people don't use images of lakes as images for their product warranties. Most eshops use white as a background. If that's not desirable, we could also overlay the two images on top of each other, the bottom one being set to cover, the top one to 'contain' and blurring the one in the background. Kind of like what you often see on Instagram |
Beta Was this translation helpful? Give feedback.
-
Please note we're converting this issue into a discussion as per our new procedures/policies. You can read more about that in our announcement #712 |
Beta Was this translation helpful? Give feedback.
-
I came across a similar problem in my workflow (#968). For my particular use case, a single global setting would be sufficient, as long as it would let me specify to show the whole image in the thumbnail, rather than just a part of it (i.e. contain vs. cover mentioned earlier). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the problem you are trying to solve with this feature?
I've been manually modifying the images to add white space to allow the full item to appear in the tile, however, I'd like to suggest that the css be modified to allow the full image to be shown rather than the current method of sizing horizontally and cropping the top and bottom.
What is the solution you are proposing?
I believe editing frontend/assets/css/main.css and frontend/components/Item/Card.vue are required.
(I'm not good with style names)
.i-tile{ background-color:#FFF; }
.i-full{ object-fit: contain !important; margin:auto; }
I know this might not be desired for everyone, so it might need to be implemented as an option in settings, or a item specific option.
(Or even item specific setting for background colour choice of theme or transparent)
What alternatives have you considered?
Manually modifying each image prior to upload in order to add white space.
Additional context
A preview of what I'm proposing can be done with the following javascript:
Contributions
Beta Was this translation helpful? Give feedback.
All reactions