Yii Framework Forum: [extension] image - Yii Framework Forum

Jump to content

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

[extension] image Rate Topic: -----

#1 User is offline   isreal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 15-February 09
  • Location:slp, mex

Posted 16 June 2009 - 03:05 AM

hi there.
anyone of those have used this extension knows about the requirements for windows?
I have tried and can't make this work, i have install imagemagick and executed the example code
        $image = Yii::app()->image->load('images/test.png');
        $image->resize(400, 100)->sharpen(20)->quality(75);
        $image->save();
but the does not overwrite the image.
any idea?
0

#2 User is offline   miles 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 89
  • Joined: 16-January 09
  • Location:Beijing

Posted 16 June 2009 - 04:32 AM

try gd2
0

#3 User is offline   isreal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 41
  • Joined: 15-February 09
  • Location:slp, mex

Posted 18 June 2009 - 11:51 PM

thanks for the tip.
i thougth gd was more complicated then imagick, hope not to find issues along.

seems godaddy also support gd.
0

#4 User is offline   Junior - df9 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 416
  • Joined: 24-May 09
  • Location:Brazil

Posted 19 July 2009 - 05:08 PM

Hey, very good job!

I've written two little more functions for personal purposes:

watermark() and insertText()

The former is to insert a watermark over a photo/image, like:
$image->watermark(path_to_the_overlay_image): accepts gif, jpeg, jpg and png and is chainable

The latter is to insert a given text into the image:
insertText($text,$hAlign,$vAlign,$hMargin,$vMargin,$fixX,$fixY,$fontFilePath,$fontSize,$angle,$rgb=array(0,0,0))

I thought the original author could improve and insert these features in the default package...if so, i'll be glad to send the file...

:>))

regards!!
______________________________________
Junior
df9.com.br
Linux Registered User #364954
GNU/Linux: together we're ready!
0

#5 User is offline   Karasko 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 89
  • Joined: 14-July 09
  • Location:Russia

Posted 21 July 2009 - 06:09 AM

My 2 cents.
I prefer ImageMagick because GD2 consumes too much memory working with large images, it can be an issue on some shared hostings.
But i stuck with Image extension for ImageMagick in windows environment >:(
0

#6 User is offline   miles 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 89
  • Joined: 16-January 09
  • Location:Beijing

Posted 14 August 2009 - 01:02 AM

View Postscoob.junior, on 19 July 2009 - 05:08 PM, said:

Hey, very good job!

I've written two little more functions for personal purposes:

watermark() and insertText()

The former is to insert a watermark over a photo/image, like:
$image->watermark(path_to_the_overlay_image): accepts gif, jpeg, jpg and png and is chainable

The latter is to insert a given text into the image:
insertText($text,$hAlign,$vAlign,$hMargin,$vMargin,$fixX,$fixY,$fontFilePath,$fontSize,$angle,$rgb=array(0,0,0))

I thought the original author could improve and insert these features in the default package...if so, i'll be glad to send the file...

:>))

regards!!



great job, I would like to improve and insert these features in the default package.
my email: cuiming2355_cn@hotmail.com
0

#7 User is offline   Nacesprin 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 71
  • Joined: 04-April 10
  • Location:San Fernando - Cadiz - Spain

Posted 25 March 2012 - 08:06 AM

View Postmiles, on 14 August 2009 - 01:02 AM, said:

great job, I would like to improve and insert these features in the default package.
my email: cuiming2355_cn@hotmail.com


Is the "image" extension upgraded with watermark() function? I've downloaded and it doesn't stay.
0

#8 User is offline   dotnot 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 22-July 12

Posted 02 August 2012 - 02:23 PM

View PostNacesprin, on 25 March 2012 - 08:06 AM, said:

Is the "image" extension upgraded with watermark() function? I've downloaded and it doesn't stay.

And I too. Where is a watermark? why this function is in the documentation and actually do not?
0

#9 User is offline   Bjorn 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 156
  • Joined: 15-April 13
  • Location:The Netherlands

Posted 25 April 2013 - 03:57 AM

This is an old topic, but why is the watermark function not available yet?
0

#10 User is offline   Bogdan Savluk 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 65
  • Joined: 20-April 10
  • Location:Kiev

Posted 25 April 2013 - 05:20 AM

Some time ago(because of need in additional functionality), I have made fork of this extension: https://bitbucket.or...bodya/yii-image

watermark is already avaliable there.
1

#11 User is offline   Bjorn 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 156
  • Joined: 15-April 13
  • Location:The Netherlands

Posted 26 April 2013 - 12:18 PM

View PostBogdan Savluk, on 25 April 2013 - 05:20 AM, said:

Some time ago(because of need in additional functionality), I have made fork of this extension: https://bitbucket.or...bodya/yii-image

watermark is already avaliable there.

Awesome, I will check out this fork, tnx a lot!
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