hi im not sure but i cant seem to find where can you regenerate image derivatives after i updated the image style dimensions for drupal 7.

thanks!

Comments

joachim’s picture

Status: Active » Closed (won't fix)

Nothing to do with this module -- ask on the forum or IRC.

westbywest’s picture

I couldn't find a forum post follow-up to this, but I was able to effect a cron-triggered regeneration of image derivatives as follows:

1. Create a view with a page display which displays all desired image derivatives as fields in a list of nodes. I.e. so that loading this view's URL in a browser triggers image derivative generation. You don't have to use a pager; we'll be making wget wait a delay before each request.

2. For sake of simplicity, disable all blocks for this view's URL. I.e. try to only have the view display the image derivatives and as few links as possible.

3. Launch wget in a cron job on some period, e.g. every 2hrs, like so:

5 */2 * * * wget -P /tmp/wget-drupal -nH -w 5 -m -r -q -I sites/default/files/styles http://mysite.com/view-url > /dev/null 2>&1

The important bits are the "-w 5", the "-P /tmp/wget-drupal", and the "-I sites/default/files/styles" options. The first tells wget to wait 5sec before each request, i.e. so that it's not trying to download all image derivatives one immediately after another. The 2nd tells wget to store the files it downloads locally, so it can maintain a local cache to compare against. The 3rd option tells wget only to download image derivative files.

You would need to alter this wget command to match your setup.