Donate Share

WideImage

Code

Programming Languages: PHP

License: GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics, last commit on 2009-10-31 svn co https://wideimage.svn.sourceforge.net/svnroot/wideimage wideimage

Show:

What's happening?

  • WideImage

    gasper_k committed revision 173 to the WideImage SVN repository, changing 1 files.

    2009-10-31 12:55:39 UTC by gasper_k

  • add create methods to Image

    two methods to create images, aliases for create methods in subclasses - createTrueColor(int width, int height, bool transparent) - createPalette(int width, int height, bool transparent, transparent_color)

    2009-10-31 12:47:39 UTC by gasper_k

  • WideImage

    gasper_k committed revision 172 to the WideImage SVN repository, changing 1 files.

    2009-10-31 12:35:03 UTC by gasper_k

  • Comment: bug with saveToFile parameter

    fixed in r171.

    2009-10-31 12:34:13 UTC by gasper_k

  • Comment: bug with saveToFile parameter

    This bug has been fixed in SVN. Visit http://sourceforge.net/svn/?group_id=190526 to browse or checkout the source code. Thank you for your report.

    2009-10-31 12:34:11 UTC by gasper_k

  • WideImage

    gasper_k committed revision 171 to the WideImage SVN repository, changing 1 files.

    2009-10-31 12:33:46 UTC by gasper_k

  • Comment: save() quality/compression should abstract GD difference

    also, please note the bug in the recent version: https://sourceforge.net/tracker/index.php?func=detail&aid=2854710&group_id=190526&atid=933712.

    2009-10-30 22:17:00 UTC by gasper_k

  • Comment: bug with saveToFile parameter

    This results in the second parameter to saveToFile() being ignored. So if you want to save a PNG with compression (or JPEG with quality), you should pass these values as the THIRD parameter: $Image->saveToFile('image.png', null, 7); $Image->saveToFile('image.jpg', null, 90);.

    2009-10-30 22:16:34 UTC by gasper_k

  • Comment: save() quality/compression should abstract GD difference

    Hi, thanks for your suggestion. While this feature seems nice, there's a problem with it. Compression level and quality are two different things and shouldn't be treated as analogues. With PNG, you don't actually reduce the quality (you don't lose image detail), as this happens with JPEG. PNG's compression ratio only defines how much compression should be used upon saving, which affects CPU...

    2009-10-30 21:52:40 UTC by gasper_k

  • save() quality/compression should abstract GD difference

    First up, great work! Working with both pngs and jpegs, one annoying difference between the imagepng() and imagejpeg() methods of GD is that the compression for PNGs goes from 0 to 9 where the quality for JPEGs is between 0 and 100. It would be very convenient if WideImage abstracted away this difference and converted the argument to the proper format. Alternatively, a method for getting...

    2009-10-22 11:55:24 UTC by jokkedk

Our Numbers