Project:Imagecache Effects
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

The current module appears to be broken, it's referencing $image->res when it should be referencing $image->resource.

Patch attached.

AttachmentSize
imagecache_effects-res_to_resource.patch4.13 KB

Comments

#1

Status:needs review» reviewed & tested by the community

Yeah, this module is useless without this patch.

#2

Good find. An update would be great :)

#3

THANK YOU SIR

I can't belive I had to find this thread in order to make the module work. It'd be so easy to update it!!!

I mean, there are issues posted by people who can't use this module. And they were never answered, at least not mine.

Of course, thank you to the module's creator, but, man!!, you made me have a hard time...... geez. I guess he's working on merging this module with Imegacache Actions, but hey, let us know in the project's page.

Thanks again y'all again anyway.

#4

Here's imageapi.inc with this patch applied. It worked perfectly for me, thanks a million!

AttachmentSize
Patched version of imageapi.inc 2.87 KB

#5

Tnx!! patch works great for me!

#6

I believe there is a typo in the released code and the patch, on line 176

I believe "imagedestroy" is the correct function name:

<?php
    imagedestroy
($background); // line 176
?>

Could someone verify this and commit to the head?

Until then, you can download and use the file I attached. I only updated the typo from adamcarsonb's patched attachment at #4

FYI, I checked the DEV and release codes, they all have the same typo. I can't commit the patches on my current machine. I appreciate if someone would do it actually.

Thanks,

AttachmentSize
imagecache_effects-6.x-1.1__patched__imageapi.tar_.gz 2.73 KB

#7

Status:reviewed & tested by the community» needs work

Needs work then.

#8

Status:needs work» reviewed & tested by the community

Here's a fixed version of the patch. Setting back to RTBC since the error was in the original version of the code (pre-patch) as well.

I tested the patch and it does fix (at least) one bug for me.

AttachmentSize
401694_imagecache_effects-res_to_resource.patch 4.13 KB