Is there anyway VBO download archive files that image cache produce than original file

thanks

Comments

bojanz’s picture

Category: feature » support
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

liquidcms’s picture

Version: 6.x-1.9 » 7.x-3.x-dev
Category: support » feature
Status: Closed (fixed) » Active

@bojanz - i didnt see that module as i was looking for a solution for D7 and was talking to @infojunkie a while back about adding it; but he never had the time to get to it.

you can see a slightly different approach that i have created in post here: http://drupal.org/node/1787410#comment-6913140

i created a new action .inc and tweaked vbo.module to include the file thinking this could get included in vbo project. of course if you don't want to include it it would be easy enough to make a module out of it as the D7 port of imagefield_archive (although not sure if my ui is the same as that module was using)

i also changed how the zip archive is created which i think is better than how you are doing it in the std file archive action (see details in post)

please check it out if you have a chance and if you don't want to include this with the vbo project; i can easily whip up a standalone project for it.

liquidcms’s picture

Status: Active » Needs review
StatusFileSize
new8.69 KB

and i guess it would make sense to include the patch here since it is against VBO

bojanz’s picture

Status: Needs review » Needs work

Seems that it would make more sense for the image cache to be an option for the existing action ("Use the following image style for any found images", with a "None" option that's the default, so it behaves like before).
Because you're duplicating a lot of code, and that duplication can be avoided.

liquidcms’s picture

i seem to recall it looks similar but that i had to change a few things about how the existing file download action was working; mostly as i don't think it was doing the batch api correctly; or possibly that the zip archive was not being done at the right point. i'll see if i can find some time this week to take another look.

using this on a few big projects now and it is working very well.