I am using PHP's getimagesize() function to get the height/width/type from an image URL. Currently, for a jpg file, $type is returning 2. How can I ge ...
I am using PHP's getimagesize() function to get the height/width/type from an image URL. Currently, for a jpg file, $type is returning 2. How can I ge ...
I am having trouble showing images correctly in my application. I wish the picture would retain its original proportions. I display picture in the App ...
I'm trying to write an Joomla plugin to add width and height tag to each <img> in HTML file. Some image file names are Persian, and getimagesize ...
getimagesize () command in the For loop and the Foreach loop gives the same erroneous result. I just couldn't fix it. What is the reason for this, how ...
I am trying to get the size from an remote image with the native php function getimagesize from an absolute URL. I am using PHP 7.3, here is the code: ...
Code: If run in localhost => $size[0] ok - Run in server hostinger => $size[0] NULL Ps: allow_url_fopen is ON (check by: phpinfo(); Tks help@ ...
For getimagesize(), what is the proper path to use for the file? In my case, I prefer an absolute path but it gives an error that there is no file but ...
I have more than 8000 images in my laravel project and most of these images are in different type distentions. So what I trying to do is check and dim ...
getimagesize() fails in Xampp (local PC), although it works fine in the live environment. Based on the error message, the issue seems related to cert ...
I have some images stored in AWS S3, and I'm using the Storage facade in Laravel to display them on a web page. In a few cases, I want to get the dim ...
Given that getImagesize() requires a string and $_FILES['myfile'] is an array, I've tried to get to the temporary folder and the file uploaded there i ...
I want to upload images to a server using ajax and php. On client-side i hava the following code: On server-side my code looks like the following: ...
Guys check out this gif. https://gfycat.com/IllustriousThirdLamb I'll wait for your solutions. PHP PROBLEM SOLVED. THANKS ...
I'm trying to create a default image of my own if an image from rss feed is too small. this is my code: but some of the feeds return media with an ...
I have in a Google Sheet a list of images by URL. Images are on a remote server. I got the preview in my Sheet by the Image (URL) function. Is there ...
I found this solution, because @getimagesize was horrible slow: It works very fast but this function always tries to load the image even if it isn' ...
I have a code that gets an imgur link and fetches the height and width of the image using the simple: I was running PHP 7.1 and everything worked f ...
I'm having a problem with the getimagesize function, it freezes the server. This works normally in another computers, it works even in the producti ...
I'm using a really good lightbox script but it needs me to output the image sizes. The site I'm using is php and can resize images as they are uploade ...
I got a question. I need to get the image dimensions from images in folder with PHP. I know that probably would be the best way to do this with PHP fu ...