Imagecache, Views, file renaming, and output directories

Posted by Bruno on Stack Overflow See other posts from Stack Overflow or by Bruno
Published on 2010-06-12T21:13:02Z Indexed on 2010/06/12 21:23 UTC
Read the original article Hit count: 205

Filed under:
|

I have been trying to figure this one out for awhile and just seem to be getting myself deeper into a rabbit hole.. I think it would be best if I would just explain what I am trying to accomplish and go from there..

Essentially what I would like to happen is a user would upload a photograph from the filefield sources on a content type, and then using views, it would output that different image through different imagecache actions.. The problem seems to be that the actual directories it is making is really cluttered and I would like it to be a little bit more organized due to some file renaming. Here is how I would like the process to happen:

  • Upload image.jpg
  • Imagecache resize 100x100 square and save file to same directory and name the file image-100.jpg
  • Imagecache desaturate 100x100 square and save file to same directory and name the file image-d-100.jpg

Currently it seems that every imagecache action will save that file in its own directory.. How can I specify a more customized output?

Thanks, Anthony

© Stack Overflow or respective owner

Related posts about drupal-6

Related posts about drupal-views