Jump to content

Regenerate images


nghi
 Share

Recommended Posts

Not sure how to do this but I change the quality option for the size function but it doesn't seem to process it again when the page is load

$image->size(500,0,array('quality'=>100))->url

$image->size(500,0,array('quality'=>50))->url

Also how would I regenerate all images on a site?

I'm thinking about just using winhttrack to crawl through it unless there is some PW way to do it?

Link to comment
Share on other sites

Hi nghi,

$image->removeVariations();

If you want to do that for a whole site you do it best way with a bootstrapped script and foreach page with image(s) fields. There are a lot of examples here in the forums. If you cannot find one or have a question please come back here and ask.

PS: you cannot create two files with the same width/height. If you want to compare quality, just use size(500,0) and size(501,0).

  • Like 2
Link to comment
Share on other sites

It may a good one to add a naming convention for quality 500x0-70? The quality setting is relatively new.

Naming convention: +1!

Quality == new setting ? It was there since my very first day here. So, please call me youngster. :lol:

Naming convention needs to respect cropped versions too => look here

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...