Yii Framework Forum: Image Resize Without change Quality - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Image Resize Without change Quality Image Resize Smaller to bigger size without change Quality Rate Topic: -----

#1 User is offline   Geetha Janar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 05-October 17

Posted 05 October 2017 - 01:01 AM

Hi,

How to image resize without stretch (not change quality image) when resize smaller size image to bigger size image.
Is there any extension in Yii 1.1?
Am used CImageComponent Extension it's resize image but image quality not good.

My Coding:
$image = Yii::app()->image->load(images/test.jpg);
$image->resize(1920, 920)->quality(100);
$image->save();


Above coding working fine,But My original image size
560 * 400 Once am resize 1920 * 920 it's not
good quality image be stretch.

I need to resize image without changing quality image (resize small size image to big size image).

Please Give me Solution.
0

#2 User is offline   Geetha Janar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 05-October 17

Posted 10 October 2017 - 12:07 AM

Is there any solution for my problem(or please tell me possible or not ) for my above problem?
0

#3 User is offline   softark 

  • Keep It Simple
  • Yii
  • Group: Moderators
  • Posts: 3,372
  • Joined: 16-February 11
  • Location:Japan

Posted 10 October 2017 - 05:15 AM

It's not possible to improve the quality of a resized image. The quality of a resized image can not exceed that of the original one.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users