[Tickets #10645] Re: picture leftover after delete
bugs at horde.org
bugs at horde.org
Sun Oct 16 23:38:06 UTC 2011
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/10645
------------------------------------------------------------------------------
Ticket | 10645
Updated By | Michael Rubinsky <mrubinsk at horde.org>
Summary | picture leftover after delete
Queue | Ansel
Version | 2.0-ALPHA1
Type | Bug
State | Assigned
Priority | 1. Low
Milestone |
Patch |
Owners | Michael Rubinsky
------------------------------------------------------------------------------
Michael Rubinsky <mrubinsk at horde.org> (2011-10-16 23:38) wrote:
> i did a little bit of basic debugging and added some
> Horde::debug("LOG") to both methods that read and write
> ansel_hashes. i added a picture and nothing were logged.
The hash is written when the gallery is created or the style
attributes for the gallery are changed, not when the image is
created/saved.
so i looked where the
> methods are called and found a place in Gallery.php -> getKeyImage()
> and here it never goes into the second if where ensureHash is called.
The hash computed for getKeyImage is there because the "stack" images
may have a different style hash then that of the gallery. If it's
never getting called in that method, then you are not using one of the
"pretty" image stacks.
> so i played around with both style settings for that gallery were i
> upload my test pictures to. but no change. i only noticed that i
> can't set another preview style, after choosing another than "simple
> preview" and save and reopen properties it's still "simple preview"
This might be the issue. It could be that your image backend does not
support generating these images (so the style hash for them would
never need to be computed). Though, if that is the case, the image
would not have been generated to begin with...unless you changed your
image backend from one that *does* support them (like ImageMagick) to
one that does not (like GD).
More information about the bugs
mailing list