이미지의 너비와 높이를 얻는 방법은 무엇입니까?PHP 이미지 크기
나는
$variable = 'http://site.com/image.png"
이 $height
에 $width
과 높이로이 이미지의 폭을 가져다 줄까 있습니다.
처럼 : $variable = 'http://site.com/image.png"
$width = '300'; // image width is 300px
$height = '500'; // height is 500px
감사합니다.
본인 사이트입니까? 어쨌든 –
여기에 약간의 마법이 있습니다. http://google.com/search?q=PHP+image+dimension –
가능한 가장 빠른 방법으로 이미지 크기를 동적으로 검색하는 방법 (http://stackoverflow.com/questions/) 3334097/가장 빠른 방법 - 동적 검색 이미지 - 치수) –