0
ypth의 phpthumb을 사용하여 이미지를 크기를 조정하는 방법?비행 중에 Yii 이미지 크기를 조정 하시겠습니까?
예 : <img src ='phpthumb.php?src=example.jpg&w=200&h=100'/>
나는 그것이 YII에서 작동하는지 확인하지 못할.
ypth의 phpthumb을 사용하여 이미지를 크기를 조정하는 방법?비행 중에 Yii 이미지 크기를 조정 하시겠습니까?
예 : <img src ='phpthumb.php?src=example.jpg&w=200&h=100'/>
나는 그것이 YII에서 작동하는지 확인하지 못할.
이 스 니펫으로 이미지의 크기를 조정합니다.
<?php
header('Content-type: image/jpeg');
$image = new Imagick('image.jpg');
$image->adaptiveResizeImage(1024,768);
echo $image;
?>
당신이 하나
<?php
header('Content-type: image/jpeg');
$image = new Imagick($_GET['src']);
$image->adaptiveResizeImage(1024,768);
echo $image;
?>
, 예를 들어, 시도 할 수 http://www.yiiframework.com/wiki/419/image-resize-on-the-fly/ – topher