yireo / Yireo_NextGenImages

44 stars 26 forks source link

fix: strip querystring from image url #33

Closed theuargb closed 2 years ago

theuargb commented 2 years ago

We use urls like media/catalog/product/image/3369070ab6/some-image-name-70830.jpeg?width=700&height=700&store=ua&image-type=image and the currently generated appropriate local file path includes querystring. To handle such files and keep hyva-related image urls like fullscreen ? image.full : image.img safely I suggest the solution below)

jissereitsma commented 2 years ago

Many thanks @theuargb - I guess this problem might popup in other places than Hyva as well. I simply didn't bump into this myself. I will merge and release right away!