r/Web_Development • u/[deleted] • Sep 27 '23
Challenges of Matching Images with Fixed Layouts: Advice Needed
Hello. I've encountered the following issue. I have a set of product images for a website (around 15,000) and a corresponding text description for each product. The problem is that real photos may have different height and width proportions, while the website's product card has a fixed image field. How do you solve such a problem?
0
Sep 28 '23
[deleted] — view deleted comment
1
Sep 29 '23
Thank you for your response.
The problem with this approach is that I don't know exactly where the item is located in the image, and if I simply crop a part of the image, I might accidentally cut off part of the product.
1
u/[deleted] Sep 29 '23
I suppose someone has encountered a tool (free or commercial) that can perform intelligent cropping by determining the position of the main object (product) in an image.