broken resize image 640x640 not appearing

cow736

Joined: 2004-12-21
Posts: 46
Posted: Sun, 2005-06-19 07:24

When I add a picture I get the thumbnail which I assume is 92x92 and the full size image 2592x1944.

I cannot get the 640x640 image to appear. It shows a broken image icon? Why is it default 640x640? Shouldn't it be 640x480?

I have searched and tried all the fixes in the G2 discussion forum... nothing has worked?

Can anyone please help me? What am I doing wrong?

----

Gallery URL (optional): localhost
Gallery version: G2 latest nightly build
Webserver (with version): Apache 2.0.54
Datatabase (with version): MySQL v4.1.11
PHP version (eg 4.2.1): 5.0.4
phpinfo URL (optional): N/A
Graphics Toolkit(s): Netpbm v0.9.5 then ImageMagicK v0.9.7
Operating system: Fedora Core 4 Kernel 2.6.11-1.1369_FC4
Web browser/version: IE 6 / Mozilla Firefox
G1 version (for migration bugs): N/A

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-06-19 11:28

probably you have the square thumbnails module activated.
you can edit the thumbnail / resized sizes in edit album.

if you get broken thumbs, you may want to reverse the image toolkit priority.

 
rene18

Joined: 2005-06-01
Posts: 1
Posted: Sat, 2005-06-25 18:35

I think you have the same problem I did... I also had a lot of pictures that had broken resized images. Instead of correct resized images (640x640 & 1024x1024) G2 showed 92x92 pictures which where broken. To fix it you just have to recreate the resized images. You can recreate ALL images (Site Admin -> Maintenance -> Build all thumbnails/resizes) or just fix the broken album (edit album -> Album -> Recreate resized images -> Save).

I wish I had come to this a lot sooner... I mean before I had messed 2 days with database and G2 cache files :evil:

TIP: If you have a lot of albums (like I did) and you don't know which ones have broken images then maybe you can use this query:
SELECT DISTINCT g_parentId, g_title FROM g2_DerivativeImage a INNER JOIN g2_Derivative b ON a.g_id=b.g_id INNER JOIN g2_ChildEntity c ON c.g_id=g_derivativeSourceId INNER JOIN g2_Item d ON d.g_id=c.g_parentId WHERE g_width=92;