Randy_Johnson's avatar

Image Ratio Issues!

Can someone please direct me to the best solution for when users upload different image ratios, I want the image ratio to be 1:1.

0 likes
2 replies
martinbean's avatar

@randy_johnson You should be processing images before displaying them.

Use something like Intervention that @michaloravec suggested to create thumbnails (at your desired dimensions and ratio) when an image is uploaded, or Glide to serve thumbnails on demand.

If someone uploads a 4 MB image, you don’t then just want to be serving that same 4 MB picture as is again. You’ll want to show a scaled (and optionally cropped) thumbnail version.

1 like

Please or to participate in this conversation.