create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

Auto cropping once Vercel deploy my app

Open Lighterchu opened this issue 3 years ago • 4 comments

Hi Team,

I have a storefront where all images look fine on the local side of the project and images fit and all that good stuff. However, once I take it and deploy it to vercel, for some reason I found the images have been cropped and changed around. The client I am working for needs to have the whole image in the product cards and not cropped. They are a photographer that needs to have images shown to the fullest. I really hope someone knows how to stop the auto-cropping or can show me the light on this issue

( DEV Server ) Screen Shot 2022-08-19 at 5 06 11 pm

( Vercel Deploy Server ) Screen Shot 2022-08-19 at 2 12 17 am

I have done alot of changes in the app and tried to work it ou myself, but nothing I do help when it comes to images as something built into the deploy change the image scale and crops it

Lighterchu avatar Aug 20 '22 10:08 Lighterchu

I think it would be better if u post this in proper format with your code then it would be a lot insightful. but got your problem.

DiviyamPathak avatar Aug 21 '22 06:08 DiviyamPathak

take a look at this article it should help you https://vercel.com/docs/concepts/image-optimization

DiviyamPathak avatar Aug 21 '22 06:08 DiviyamPathak

Hi Diviyam,

So I am using Vercel as the hosting services and I am using the framework of Hydrogen, how ever ever think crystal clear on the local, but when I deploy it to Vercel, it gets cropped. I dont have any built in functions of Vercel

Lighterchu avatar Aug 22 '22 22:08 Lighterchu

is this even related to cra?

PeterNelsonT avatar Aug 30 '22 13:08 PeterNelsonT