On my site, I was using the 7.x-1.x-dev version from 2012-05-06 so far, and imagecache custom actions worked fine. Now there was an upgrade suggested to 7.x-1.0, so I installed this and run database upgrades.

Now my custom actions are broken, due to a totally new interface!

I could figure out, that the former $width and $height variables are now something like $image['info']['width'], ok. But where is the former $image object gone, especially $image->resource? Need this for php gd image operations like imagecopyresampled and others.

If this doesn't exist, can I downgrade to former dev version?

Maybe such changes should be announced IN BIG LETTERS?

Regards,
Boris

Comments

fietserwin’s picture

Component: Custom Actions Module » Documentation
Status: Active » Fixed

We are sorry to have caused you any inconvenience. But the 7.x-0.0 and pre 7.x-1.0 dev releases have never been considered stable, nor were any upgrade paths foreseen. That's also the reason why some of the incompatibilities may have been rushed in: break once and do that before releasing any stable release that will be fully supported by us and that (as far as possible) will get upgrade paths.

I did update the documentation though, things could indeed have been formulated more explicitly. Both the project page and release notes here on the d.o. site as well as the documentation that comes with the modules (README, CHANGELOG) have been modified. You can read more about how to write your snippets in the README.txt of the sub-module.

Regarding your $image problem: $image is the object as is passed around to all effects when an image is being created. So it should be $image->info['width'], not the array form, and $image->resource should be just there. If not, just reopen this issue. Downgrading should not be necessary.

Status: Fixed » Closed (fixed)

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