Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortcadams
    • CommentTimeApr 25th 2006
     
    Is there a modification I can make to get the script to remove the original full size photos after they've been uploaded?

    I'm developing a site for a client who won't be comfortable with resizing images before he uploads them, and there's going to be a large amount of photos. He only has 500mb of hosting space, and not massively generous bandwidth either - so removing the originals would be a good solution. He has no need for full size images to be displayed.

    I can hack enough PHP to remove any links to the large photos, but don't really know where to start in deleting the original. Any help appreciated!

    Fantastic tool, btw - thanks.
    •  
      CommentAuthormike
    • CommentTimeApr 25th 2006
     
    Probably not a good idea, considering the thumbnails are generated from the original image. What happens if your client wants to resize the thumbnails?

    If you were sure that he wouldn't do this, you would have to modify the generate_thumbnail function in plog-functions.php. I wouldn't recommend it.
    • CommentAuthortcadams
    • CommentTimeApr 25th 2006
     
    OK, that makes sense. Thanks.
  1.  
    I've made these changes to Beta 3 and can give you the hack if you want.
    I had planned on implementing this properly and nicely - but don't have time, so it will remain a hack until further notice.
    The hack simply uses generates the thumb & the large thumb - then overwrites the original with the large thumbnail. This may well break Plogger functionality if your theme doesn't take this into account.
    (I only have 100Mb of storage!!)