Getimagesize often fails to process remote images. Is there any other function to replace or use other methods? I only want the width and height of the image, for example, can I obtain the CURL? I only found the file size in the HEADER. Getimagesize often fails to process remote images. Is there any other function to replace or use other methods?
I only want to obtain the width and height of the image, such as CURL? I only found the file size in the HEADER.
Reply content:
Getimagesize often fails to process remote images. Is there any other function to replace or use other methods?
I only want to obtain the width and height of the image, such as CURL? I only found the file size in the HEADER.
The size of the image cannot be determined in the header. Therefore, you cannot obtain the width and height of the image before downloading the file.