Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Add filter to modify image path #33

Closed
joppuyo opened this issue Apr 1, 2020 · 3 comments
Closed

Add filter to modify image path #33

joppuyo opened this issue Apr 1, 2020 · 3 comments

Comments

@joppuyo
Copy link
Contributor

joppuyo commented Apr 1, 2020

My use case is that I have a plugin that optimizes images but it creates a backup image before optimizing the image.

When creating a fly image I would like to use this backup instead of the optimized image so it doesn't get optimized twice thus ensuring better quality.

I would like to add a filter to this plugin you can use to change the image path that is used so the plugin can check if a backup exists and return path to the backup instead.

I have a pull request for this, I will attach it in a second.

@joppuyo
Copy link
Contributor Author

joppuyo commented Apr 1, 2020

Created pull request #34

@junaidbhura
Copy link
Owner

Thanks @joppuyo let me take a look at this at length and get back to you!

@junaidbhura
Copy link
Owner

junaidbhura commented Jun 27, 2020

@joppuyo I've merged the PR, thanks for your contribution! This will be part of the next plugin release!

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

No branches or pull requests

2 participants