Resize image dynamically

Asked

Viewed 63 times

1

On the website of the webmotors, the images are dynamically resized...

link: https://image.webmotors.com.br/_fotos/anunciousados/gigante/2018/201804/20180403/ford-fiesta-1.0-mpi-Hatch-8v-flex-4p-manual-wmimagem15381473185.jpg? s=fill&w=800&h=300&q=50

at the end of the picture we have .jpg?s=fill&w=800&h=300&q=50.

How do I do it? and depending on the size inserts the brand of the webmotors water...

What library or function in php, javascript can I do this? There may be the possibility to do this via .htaccess?

  • GD?

  • You can do this: http://php.net/manual/en/imagick.resizeimage.php

  • I’ll study the libraries and come back to post

  • There’s another way to be done?

  • You can format by css, but the image will be resized "virtually"

  • I managed to make it work for the Imacki

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.