Gregwar / ImageBundle

Image manipulation bundle for Symfony 2
MIT License
195 stars 50 forks source link

Define cache_dir on the fly #96

Closed CharlyPoppins closed 7 years ago

CharlyPoppins commented 8 years ago

HI,

I'm trying to define the cache_dir on the fly.

photo1 need to be cached in /my_dir_1 and photo2 need to be cached in /my_dir_2

I tried with .setCacheDir('my_dir_1') but it changes cache_dir for every photo generated after.

Is there a way to define cache_dir only for photo ? Or maybe to store the original cache_dir with something like .getCacheDir()