Donate Share

phpThumb()

Code

Programming Languages: PHP

License: GNU General Public License (GPL)

Show:

What's happening?

  • PHP 5.3 eregi() deprecated, no thumb

    phpThumb doesn't work with PHP 5.3. No thumbnail is displayed. It says Deprecated: Function eregi() is deprecated in ...\phpThumb\phpThumb.php on line 152 phpThumb() v1.7.9-200805132119 Headers already sent (phpThumb.php line 446)

    2009-11-12 12:20:51 UTC by stef_s

  • 90% Memory Reduction in BMPtoGD

    While adapting the phpThumb BMP library for use with the XMB project, I noticed the memory consumption was unacceptably high. I was able to eliminate this problem by deleting the multi-dimensional array called 'data'. http://svn.xmbforum.com/wsvn/XMB/?op=revision&rev=1856 You may contact me with any questions. Use the forums at http://forums.xmbforum.com/ Enjoy Robert Chapin...

    2009-03-24 18:19:23 UTC by miqrogroove

  • phpThumb()

    getid3 added the phpThumb_1.7.9.zip file.

    2009-01-19 13:33:16 UTC by getid3

  • 1.7.9

    getid3 created the 1.7.9 file release.

    2009-01-19 13:31:16 UTC by getid3

  • auto rotate shifts the requested dimensions

    When requesting something like tn.php?src=pic.jpg&ar=x&w=500 if the original is 3264px×2448px (tilted right 90deg) the result will be 413px×550px instead of 550px×413px Can we check for automatic +/- 90% rotates, and shift the requred size(s) ? or do the rotate before the scaling.

    2008-10-10 14:52:46 UTC by ciprian-dobrea

  • Comment: Errors generated when configured to not cull cache

    SF totally wrangled my text, as was expected. The patch is of course completely trivial, but just so I do this the right way, here is the patch attached as a seperate file. File Added: phpthumb-no-cull-error.diff.

    2008-05-22 12:50:23 UTC by nextline

  • Comment: Errors generated when configured to not cull cache

    Seems to fix is to just return from the function a couple of lines before the errors starts. When you configure phpThumb() to not cull the cache, it logs a message to that effect, then tries to do some statistics, and then it tries to remove empty cache dirs. The actions following the the logging statement do not make sense at that point, so my guess is to just return the function after the...

    2008-05-22 12:46:27 UTC by nextline

  • Errors generated when configured to not cull cache

    I am encountering some errors when I try to use phpThumb() and configure it to not use any cache culling. Specifically, I see this: (trying to just paste this in SF, will probably turn out pretty bad) Notice: Undefined variable: DeletedKeys in /data/oi/htdocs/finntemplates/phpThumb-1.7.8/phpthumb.class.php on line 752 Warning: Invalid argument supplied for foreach() in...

    2008-05-22 12:33:58 UTC by nextline

  • WMI with 300 DPI JPEG

    Running phpThumb 1.7.8 PHP 5.1.6 GD 2.1.9 Using the following function for easy repititious use: function CreateThumbnail($file,$new_file,$new_file_format='jpg',$max_width=0,$max_height=0,$zoom_crop=0,$watermark_file="") { require_once($_SERVER['DOCUMENT_ROOT']."/phpthumb/phpthumb.class.php"); $phpThumb = new phpThumb(); $phpThumb->setSourceFilename($file); if($max_width>0) {.

    2007-11-13 13:34:19 UTC by piercedmedia

  • temp file not deleted

    In phpthumb.class.php file row: 1266 The temporary file $IMtempSourceFilename from row 1263 is not deleted. I think there should be unlink($IMtempSourceFilename); right after $this->DebugMessage('ImageMagickThumbnailToGD() setting...

    2007-11-07 16:20:13 UTC by plamengeorg

Our Numbers