Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow rewinding to a previous snapshot #61

Open
denisdefreyne opened this issue Dec 10, 2021 · 1 comment
Open

Allow rewinding to a previous snapshot #61

denisdefreyne opened this issue Dec 10, 2021 · 1 comment

Comments

@denisdefreyne
Copy link
Member

Example:

compile '/assets/images/*.png' do
  filter :resize
  snapsnot :uncompressed
  write item.identifier.without_ext + '.png'

  filter :webp
  write item.identifier.without_ext + '.webp'
  rewind_to :uncompressed

  filter :avif
  write item.identifier.without_ext + '.avif'
end
@gpakosz
Copy link
Member

gpakosz commented Dec 14, 2021

As long as the compile block execution is serial, I believe this could go a long way.

This has the benefit of not messing with the concept of a :last snapshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants