I'm trying to get image width and height from a jpg file extracted from PDF file using code:
if (file_exists($firstPagePath)) {
if (is_readable($firstPagePath)) {
list($width, $height) = getimagesize($firstPagePath);
}
}
I have confirmed that it is correct image by running command line identify:
JPEG 1190x1684 1190x1684+0+0 8-bit sRGB 192302B 0.000u 0:00.000
File exists and it is readable but still it throws failed to open stream: No such file or directory error. I have already checked THIS but it didn't helped. I'm looking for any idea...