Hi,
is it possible to generate image on fly, without save on disk?
Thanx.
Page 1 of 1
[extension] Image
#4
Posted 31 January 2009 - 11:44 PM
sorry qwerty
Will not add this feature
this extension only Kohana Image Library wrapper
Kohana Image Library could not generate image on fly
我英文太烂了,希望能看明白~~~
Will not add this feature
this extension only Kohana Image Library wrapper
Kohana Image Library could not generate image on fly
我英文太烂了,希望能看明白~~~
#5
Posted 12 August 2009 - 08:02 PM
changes in Image class to cut images into square from a rectangular image without distortion
Added new constant SQUARE
Modified 'resize' method to check the value of SQUARE and define if $master will determine WIDTH or HEIGHT
to cut images square
Image.php (10.4K)
Number of downloads: 105
Added new constant SQUARE
Modified 'resize' method to check the value of SQUARE and define if $master will determine WIDTH or HEIGHT
to cut images square
$thumb = Yii::app()->image->load('your_image.png'); $thumb->resize(120, 120, Image::SQUARE)->crop(120,120)->sharpen(15)->quality(75);

Number of downloads: 105
#6
Posted 08 October 2009 - 09:23 PM
Hi,
works very nice! Thank you.
I just modified the files a little bit:
instead of the full path, in Image and CImageComponent.
Because I use it as a extension in a module.
Best regards,
schmunk
works very nice! Thank you.
I just modified the files a little bit:
Yii::setPathOfAlias('image', dirname(__FILE__)); Yii::import('image.*');
instead of the full path, in Image and CImageComponent.
Because I use it as a extension in a module.
Best regards,
schmunk
Phundament - Yii Application Boilerplate with composer support
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
Fork on github
Follow phundament on Twitter
DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
#7
Posted 06 January 2010 - 07:19 AM
There is a bug with transparent gif resizing - background becomes black.
Here is fixed
Image_GD_Driver.php (11.46K)
Number of downloads: 38.
Here is fixed

Number of downloads: 38.
#8
Posted 08 January 2010 - 03:45 PM
I have another problem which seems really bad.
Lets say I have an Image with 400k size, here is my code.
then if I right click the image and save it locally, the new size its 712k.
I dont know why is i getting bigger, any help? Im really worried cause its affecting my site's preformance really bad.
Lets say I have an Image with 400k size, here is my code.
public function actionPrueba(){ $imgh = Yii::app()->image; $img = $imgh->load("C:/test/images/30225.jpg"); $img->render(); }
then if I right click the image and save it locally, the new size its 712k.
I dont know why is i getting bigger, any help? Im really worried cause its affecting my site's preformance really bad.
- Extension: Dynamic DataProvider Behavior
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
- Extension: XUpload - jQuery File Upload Extension
- Extension: PhpQuickProfiler - A Web Log Router that will help you profile your application
- Extension: XDateView - A Date grouped Grid View
- Extension: Foundation - An easy to use, powerful, and flexible framework for building prototypes and production code on any kind of device.
- Wiki: How to generate Yii like Documentation
- Wiki: How to re enable logging during unit testing
Share this topic:
Page 1 of 1