0
I have an image upload system in Php and when images are posted, they create thumbnails. Today, these thumbnails when clicked call a jquery function to display it in a modal.
I need to confirm if this image has the ratio of 2 to 1 (for example 2000 x 1000px. But I cannot choose by size, only by proportion) and if yes, open another function, different from the current one that opens any size.
I’d be very grateful if someone could shed some light on that.
include the code you have already developed in your question.
– Leandro Angelo
the code that generates the thumbnail does not have the clue? because that’s where the image is manipulated, right
– Marcelo Shiniti Uchimura
I tried to paste the code but it exceeds the characters in the message 600 digits, there is some way to post code without this limitation here?
– Jef Coelho
Just put the related code, don’t need to put everything.
– Sam
if ($setup->getConfig('thumbnails') == true) : ? > <script type="text/javascript"> Function loadImg(thislink, thislinkencoded, thisname, thisID){ $(".vfm-zoom"). html("<i class="fa fa-refresh fa-spin"></i><img class="preimg" src="vfm-Thumb.php?Thumb="+ thislink +"&y=1" />"); $("#zoomview"). data('id', thisID); $("#zoomview .thumbtitle"). val(thisname); var firstImg = $('.preimg'); firstImg.css('display','None'); $("#zoomview"). modal();
– Jef Coelho
I guess I don’t know how to post code here yet
– Jef Coelho