link_link_link Posted May 15, 2020 Share Posted May 15, 2020 TEMPLATE: FULTON Hi everyone! I'm creating a large online store for a local art gallery. The site sells artwork from a multitude of artists in varying mediums. Because of this, images for the store have dimensions that vary a lot. Therefore, on my product details pages, many of the images are terribly cropped. I need to figure out a way to style the product details page and allow for the image's original aspect ratio to be maintained. I've been tweaking around with the CSS for hours, but can't figure out a way to make it work. I basically need the product detail page's image container to match the original aspect ratio of the photo that is displayed. Has anyone done this successfuly?! I have combed the internet with no luck. Any help would be greatly appreciated! Happy to give you the password to view the site if needed as it's not live yet. Link to comment
paul2009 Posted May 15, 2020 Share Posted May 15, 2020 There's another thread about this subject, so I'm linking to it here: About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. Content: Links in my posts may refer to SF Digital products or may be affiliate links. If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too. Link to comment
link_link_link Posted May 17, 2020 Author Share Posted May 17, 2020 Thanks Paul, I've actually seen this thread. Unfortunately no solution for me there. It's such a weird problem! Link to comment
dhob Posted May 26, 2020 Share Posted May 26, 2020 One (admittedly less than ideal) way of handling this is to create png files in the aspect ratio you've set and then save the file with a transparent background. For example, if you have the aspect ratio set at 4:3, create a blank image in Photoshop with no background at that ratio – so, say, 1500x1125px. Place your artwork image within those bounds so that it maxes out either the 1500 or 1125 dimension. Then save that as a png with a transparent background. Then upload that png file as your thumbnail. This way the images you're uploading are all technically 4:3, but to the viewer they will appear as if they're the ratio of the actual artwork. Link to comment
Pawel2021 Posted March 29, 2021 Share Posted March 29, 2021 This isn't solved. I'm using the Brine template and having this issue on my product pages on mobile. I need my images on my product pages to display at full height as they are infographics and the viewer needs to view them as the full graphic to see all the information on it. Squarespace giving a range of ratio crops is pretty useless. People setting up websites should definitely have the option to show the full image and not have this decision made for them. I've attached what I get on mobile view and also the image file for the infographic that I want to show. I have over 100 graphics like this on my website in a shop. They have the same width but they're all at different heights... I've set them up as products with the intention of potentially selling them as prints in the future so have managed to remove the prices and add to cart button by just colouring these elements white for now with the intention of making them visible when needed. @paul2009 the cropping suggestion you have on another page won't work for my graphics. They need to be visible at full height. Is there anything you can do or suggest to help me with this please? I've hit a total brick wall and this needs to work! My web address for this site in progress is: https://octagon-pelican-ay36.squarespace.com/ Cheers Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment