Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » imagegallery: replace images

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1245 Views
  • marcink
    Avatar
    Community Member
    89 Posts

    imagegallery: replace images Link to this post

    hi

    when i try to replace an existing image with an edited one, the files in the _resampled folder dont change... is there a way around this? like automatically delete all resampled images?

    thanks

  • UncleCheese
    Avatar
    4085 Posts

    Re: imagegallery: replace images Link to this post

    Nope. SS doesn't work that way. It keeps all resampled images even after the file has been deleted.

  • micahsheets
    Avatar
    Community Member
    164 Posts

    Re: imagegallery: replace images Link to this post

    It would seem that we need a dev/refresh_resampled. There are lots of times that I would like to remove all the resampled images and let the system remake them. For example if you are using DOM for a gallery and you upload an image to replace one that is already there the image gets replaced the the thumbnails that are used by the system are not because it searches and finds that they are already in the _resampled folder and the system doesn't know that the image changed so it doesn't make new ones. This is ok for me since I can just go in with FTP and delete them but for a client who is trying to manage their own gallery content this is very frustrating.

    I will probably write a custom controller using PHP's built in filesystem tools to do a search and destroy of those files. When I get it working I can post it here.

    If someone already has written this or there is some undocumented functionality already built into SS please let us know.

  • UncleCheese
    Avatar
    4085 Posts

    Re: imagegallery: replace images Link to this post

    There's an /images/flush command. Look it up in the docs.

    1245 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.