Ticket #597 (assigned Patch)

Opened 3 months ago

Last modified 3 weeks ago

Add image output directly to browser in Image Library.

Reported by: tterragcnoom Assigned to: Shadowhand (accepted)
Priority: minor Milestone: 2.2
Component: Libraries:Image Version: SVN HEAD
Keywords: image Cc: garrett@pwgdesign.com
SVN Revision (if applicable):

Description

I've added a function called output to the image library to send the proper headers and output an image directly to the browser. Not sure of the best way to implement this, but the way I did it works with GD and ImageMagick?.

I've included patches to: system/libraries/Image.php system/libraries/drivers/Image/GD.php system/libraries/drivers/Image/ImageMagick.php

Hope this helps others (http://forum.kohanaphp.com/comments.php?DiscussionID=362).

Attachments

Image.diff (0.7 kB) - added by tterragcnoom on 05/07/08 15:48:07.
system/libraries/Image.php
GD.diff (1.2 kB) - added by tterragcnoom on 05/07/08 15:48:33.
system/libraries/drivers/Image/GD.php
ImageMagick.diff (1.3 kB) - added by tterragcnoom on 05/07/08 15:48:52.
system/libraries/drivers/Image/ImageMagick.php

Change History

05/07/08 15:48:07 changed by tterragcnoom

  • attachment Image.diff added.

system/libraries/Image.php

05/07/08 15:48:12 changed by Shadowhand

  • milestone changed from 2.1.2 to 2.2.

05/07/08 15:48:33 changed by tterragcnoom

  • attachment GD.diff added.

system/libraries/drivers/Image/GD.php

05/07/08 15:48:52 changed by tterragcnoom

  • attachment ImageMagick.diff added.

system/libraries/drivers/Image/ImageMagick.php

07/07/08 15:56:33 changed by Shadowhand

  • status changed from new to assigned.
  • owner changed from - No owner - to Shadowhand.