square thumbnails problem

spankee

Joined: 2004-06-12
Posts: 51
Posted: Fri, 2005-02-04 22:35

When using the square thumbnails module the thumbnail is blank after upload until you go into edit pictures, only after will it show the thumbnail. The thumbail shows immediately using GD2.
Also, maybe I missed a setting but when I recreate all thumbnails to make them all square they also dont change until I enter edit photo. I thought the changes would take effect by just viewing the thumbnaill.
Thanks
----

Gallery URL (optional):
Gallery version:latest
Webserver (with version):Wamp5 Apache/2.0.50 (Win32)
Datatabase (with version): Mysql 4.1.7
PHP version (eg 4.2.1):5.0.3
phpinfo URL (optional):ImageMagick-6.1.9-Q16-windows-dll
Graphics Toolkit(s):imagemagick
Operating system:xp
Web browser/version:firefox

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-02-05 03:38

what does "blank" mean?
it should work as you expected.

 
spankee

Joined: 2004-06-12
Posts: 51
Posted: Sat, 2005-02-05 04:09

By "blank" I mean you cant see it, you only know a picture is there because the dropdown is below it and the mouse pointer changes. The picture doesnt show up until you enter "edit photo".

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-02-05 16:46

what happens if you right click and do "view image" ?
does debug output show anything useful?

 
spankee

Joined: 2004-06-12
Posts: 51
Posted: Sun, 2005-02-06 00:12

No nothing just a blank page, and if I rightclick on that page and select "view page info", on firefox, it says the image is 1px by 1px.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-02-09 04:20

Can you give us permissions to try adding a photo to your Gallery so that we can experiment with this and see if we can figure it out? Thanks.

 
jamzyamz
jamzyamz's picture

Joined: 2004-01-12
Posts: 154
Posted: Fri, 2005-02-25 10:48

This is the same issue I am having now. The problem (for me anyway) is with the square thumb mod. When activated it creates thumbs at 1*1 or full 100*100 but just white.
if deactivated thumbs show up again. This is only since the update (Posted a number of messages about the problems, and attempts at a solution. already)

Is it possible to somehow revert back to an older version of square mod, to test if it's something with newer version?

 
buut
buut's picture

Joined: 2003-06-18
Posts: 196
Posted: Sat, 2005-02-26 02:25

Same thing here...
feel free to play around, ftp access also possible

Gallery URL (optional): http://buut.demon.nl:8080/gallery30/gallery2/
Gallery version: 0.8.15
Webserver (with version): iis5
Datatabase (with version): mysql 4.0.12-nt
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional):
Graphics Toolkit(s): imagemagick
Operating system: win2k
Web browser/version: ie6.0

 
jamzyamz
jamzyamz's picture

Joined: 2004-01-12
Posts: 154
Posted: Sun, 2005-02-27 00:02

so that's at least three people with this problem? Anyone taking a look into this, or have some time to respond.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-02-27 00:22

i installed the current cvs version 5h ago, square thumbs enabled and everything wroks fine (well, the square thumb was distorted) but it works fine.
maybe it's a image toolkit problem. are you all using the same toolkit for this operation?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-02-27 17:31

buut, PM me ftp access to your server and i can take a look.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-02-28 02:51

This may come down to running on a slow system. I tested on buut's server and got thumbnails to be created individually by doing "view image".. heavier server load when showing a whole album page caused more failures.. I did manage to get this error output from one image request:

Error (ERROR_LOCK_TIMEOUT):
 
    * in file D:\path\to\gallery2\modules\core\classes\FlockLockSystem.class at line 288 (gallerystatus::error)
    * in file D:\path\to\gallery2\modules\core\classes\FlockLockSystem.class at line 90 (flocklocksystem::_acquirelock)
    * in file D:\path\to\gallery2\modules\core\classes\helpers\GalleryLockHelper_simple.class at line 196 (flocklocksystem::acquirewritelock)
    * in file D:\path\to\gallery2\modules\core\classes\GalleryCoreApi.class at line 1969 (gallerylockhelper_simple::acquirewritelock)
    * in file D:\path\to\gallery2\modules\core\classes\helpers\GalleryDerivativeHelper_advanced.class at line 681 (gallerycoreapi::acquirewritelock)
    * in file D:\path\to\gallery2\modules\core\classes\GalleryCoreApi.class at line 759 (galleryderivativehelper_advanced::rebuildcache)
    * in file D:\path\to\gallery2\modules\core\classes\helpers\GalleryDerivativeHelper_simple.class 
at line 63 (gallerycoreapi::rebuildderivativecache)
    * in file D:\path\to\gallery2\modules\core\classes\GalleryCoreApi.class at line 746 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)
    * in file D:\path\to\gallery2\modules\core\DownloadItem.inc at line 117 (gallerycoreapi::rebuildderivativecacheifnotcurrent)
    * in file D:\path\to\gallery2\main.php at line 278 (downloaditemview::renderimmediate)
    * in file D:\path\to\gallery2\main.php at line 46
    * in file D:\path\to\gallery2\main.php at line 39

buut and others with this problem.. 1) do some testing without square thumbnails and see if square thumbs module really is part of the problem. 2) try raising the default timeout for write locks (modules/core/classes/FlockLockSystem.class line 85, $timeout=10) and see if that helps.

 
womacks

Joined: 2006-11-20
Posts: 1
Posted: Mon, 2006-11-20 06:11

In my case the same problem appears to be caused by ImageMagick. GD and NetPBM work. Hope that helps.

In Site Admin, set the Toolkit Priority list to have GD first (I have GD, NetPBM, then ImageMagick). I deleted and reimported my album (of typical jpegs) and the (square) thumbnails are no longer blank. ImageMagick made the thumbnails blank whether I created thumbnails during import or later in Site Admin. This bug is especially annoying since by default my installation had ImageMagick listed first, and a Google for the recommended order generally says "imagemagick, netpbm, gd".

Note: I just created an Ubuntu 6.10 server w/ gallery2 and all its suggested packages (I have "universe" enabled) current as of today (Nov 19, 2006). I believe the package version of "imagemagick" is 7.6.2.4.5.