I need some info about images inside cardimg
folder.
$arr = glob("../cardimg/*.jpg");
foreach ($arr as $item){
list($width, $height) = getimagesize($item);
echo $width . '<br>';
echo $height . '<br>';
}
Works fine for width and height, but don't know how to see if an image is 72 or 300 dpi?
my php is 7.0.20
and using
print_r(imageresolution($item));
result is error - Call to undefined function
Also is there a way to change 300dpi
to 72dpi
using php?