Not signed in (Sign In)

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

    • CommentAuthorrpain
    • CommentTimeMay 7th 2008
     
    Hi,

    Is there a way that once a user has uploaded an image and the thumbnails have been generated then the original file that was uploaded is deleted?

    I'm asking as I'm doing a site for fairly computer illiterate people who would just like to be able to upload files straight from a digi camera and won't want to learn programs like irfanview to resize them locally. I'm quite happy with the 2 thumbnail sizes - the intermediate pictures are quite large enough so I'd just like to be able to then remove the original pic.

    Thanks for a lovely simple and polished system.

    Richard
    • CommentAuthorzzap64
    • CommentTimeJul 21st 2008
     
    Bump

    Searching for "plogger deleting originals upload image" on Google, brings this thread up first, so it would be nice for an answer to be here as well :)

    Anybody got any suggestions? I have removed the code to allow printing or displaying of full sized images but I'd like to delete them from the server altogether since they are bound to be quite large when uploaded straight from a digital camera.

    Will I just have to insert some code myself to do with when the auto resizing for thumbnails etc. has taken place?

    Thanks,
    Iain
    • CommentAuthorzzap64
    • CommentTimeJul 28th 2008
     
    Well it looks like the original files can't be deleted as it seems that (at least) the album thumbnails seemed to be generated from the original files every time, or at least deleting the original files caused some check not to happen and in the view albums page I end up with no thumbnails for the albums.

    I would have put my code at the end of the add_picture() function plog-admin-functions.

    Seems such a shame that I have to waste a lot of storage space on the server for full res photos that I am not allowing anybody to download. Surely thumbnails and image view sizes should be generated once and that's it? :(

    Iain
    •  
      CommentAuthorsidtheduck
    • CommentTimeJul 28th 2008
     
    zzap64,

    Currently this is not an option. I have already opened a Trac ticket regarding this though, and hope to have it implemented in a near future release. The issue of removing the originals altogether is what happens if you want to change thumbnail sizes later (i.e. you update your site theme and you really want those thumbs to be 90px instead of the original 150px you previously had them set at). You can sign up to be notified of any progress on this ticket by adding your email address to the cc: list of the trac ticket.
    • CommentAuthorzzap64
    • CommentTimeJul 28th 2008
     
    Thanks for the info, signed up as a CC anyway. Understandable why it reads the originals when generating new thumbnails but strange the way I seemed to lose the thumbnails for the view album page... maybe it was to do with timestamps or something
    •  
      CommentAuthorsidtheduck
    • CommentTimeJul 28th 2008
     
    Posted By: zzap64but strange the way I seemed to lose the thumbnails for the view album page
    You lost your thumbnails? Do you have a link still or did it get squared away?
    • CommentAuthorzzap64
    • CommentTimeAug 4th 2008
     
    The thumbnail for the album view page disappeared for one of the albums. The actual resized images and image thumbnails where still there. Maybe it was generating them on the fly from the original images within each album? Doesn't sound very efficient though if that is the case.
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 4th 2008
     
    Posted By: zzap64Maybe it was generating them on the fly from the original images within each album? Doesn't sound very efficient though if that is the case.
    Actually, it does generate the small and large thumbnails on the fly from the original images. However, it only should do this if the thumbnails are missing or the thumbnail options were updated through the Admin -> Options tab (it compares timestamps). That way, if you want to clear out your thumbs/ folder to save some space, it will re-generate them as people view them. Also, if you change the size of your thumbnails, it will update them again as well (that way you can change from square, 90 px thumbnails to rectangular, 150 px thumbnails and they will be re-generated on the fly).