Menu

#39 Fix, extend makeThumbnail

Core Class
closed-fixed
Code/Logic (73)
5
2004-08-25
2004-07-16
No

In the 0.9.3-3 version of File.php, the makeThumbnail()
function doesn't really work with GIF files (because GD
doesn't support writing them). I fixed this by saving
thumbnails of GIF files as JPG files (with
appropriately changed extension). I also added an
optional flag to calling parameters to request
replacing the original file with the thumbnail if
desired. (A useful capability when uploading images
from unsophisticated users.) This flag is initialized
to FALSE to avoid conflict with existing code. This
patch is NOT relative to the CVS version but to the
0.9.3-3 version of File.php (which might be the same, I
don't know). It tests fine as a replacement for the
original makeThumbnail as used by the photoalbum
module. I haven't tested the replace file capability yet.

Discussion

  • George Brackett

    George Brackett - 2004-07-16

    Patch file with new makeThumbnail

     
  • George Brackett

    George Brackett - 2004-07-16

    Logged In: YES
    user_id=398373

    The replace file capability works fine. Testing complete.

     
  • Steven Levin

    Steven Levin - 2004-08-18
    • assigned_to: stardog --> jydallstar
     
  • Steven Levin

    Steven Levin - 2004-08-25
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB