[SOLVED] Gallery is looking for ‘GIF’ instead of ‘JPG’

pulok

Joined: 2006-11-15
Posts: 15
Posted: Thu, 2008-11-06 08:08

I have recently upgraded gallery to 2.3. I am getting a broken image icon in photo page. Later I found galley is looking for ‘gif’ file instead of ‘jpg’ file.

To explain further for a specific photo:
Browser address bar URL: http://www.example.com/v/Selected/Test.JPG.html
'Download photo in original format' URL: http://www.example.com/d/11935-1/Test.JPG
But the photo URL: http://www.example.com/d/11937-9/Test.gif
(right click on photo and properties)

The ‘Download photo in original format’ URL display the photo as usual. But photo page is showing broken image as it is looking for GIF file with same name! Also the image size and full size is showing as 92x92! Any suggestion?


Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.5 apache
Webserver = Apache
Database = mysqlt 5.0.51a-community, lock.system=flock
Toolkits = Thumbnail
Acceleration = none, none
Operating system = Linux gadolinium.secure-dns.net 2.6.27.2 #1 Wed Oct 22 13:12:14 MDT 2008 i686
Default theme = simplegreen
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Activated toolkits : GD

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2008-11-06 14:27
Quote:
Toolkits = Thumbnail

Quote:
Activated toolkits : GD

Does GD test OK?
Try another toolkit:
FAQ: I am having trouble configuring a graphics toolkit (ImageMagick, NetPBM or ffmpeg). Help?

How big are the files?
FAQ: Why can't I upload big files (over a megabyte or two)?

Does it work if you deactivate url rewrite?

could it be:
FAQ: Thumbnails / resized images don't appear but if i use www in front of my url it works. Full sized images are fine. How to fix?
Add a item via the form upload method, post results of the debug info.

Dave

Enable debug:
FAQ: How to set/use Gallery in debug mode?_____________________________________________
Blog & G2 || floridave - Gallery Team

 
pulok

Joined: 2006-11-15
Posts: 15
Posted: Thu, 2008-11-06 18:14

Thanks a lot. Below is my feedback
a. I tried almost all suggestion including delete from g2_FactoryMap where g_implId = "Gd"; from G2 FAQ. It did not work.
b. My current hosting company supports only GD. So could not try any other toolkit.
c. Tried without url rewrite initially. It did not work. In fact url rewrite give me this clue.
d. Also noticed Toolkits = Thumbnail. Any idea how that can be fixed?
f. lib/support/index.php?gd shows details about gd and php info shows gd is enabled.
g. Debug & other output info after a new item add is uploaded as mentioned.
Any suggestion?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-11-07 03:31

You can install another toolkit yourself ( it does not need to be a host install read up on our download page about our prebuilt netpbm files )

I am a bit concerned about "Toolkits = Thumbnail". Did you copy the info from site admin; System Maintenance? Seems a bit odd to me. How many items in your gallery?
mine looks like:

Quote:
Gallery URL = http://4megs.com/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6-pl7-gentoo cgi-fcgi
Webserver = Apache
Database = mysqlt 5.0.60-log, lock.system=flock
Toolkits = NetPBM, Gd, Getid3, LinkItemToolkit, ImageMagick, Thumbnail, Ffmpeg, ArchiveUpload, jpegtran, Exif
Acceleration = none/3600, none/900
Operating system = Linux baloo.ithought.org 2.6.23-gentoo-r9 #1 SMP Thu Feb 28 09:46:03 EST 2008 i686
Default theme = matrix
gettext = disabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3
Rows in GalleryAccessMap table = 29
Rows in GalleryAccessSubscriberMap table = 1462
Rows in GalleryUser table = 4
Rows in GalleryItem table = 1450
Rows in GalleryAlbumItem table = 82
Rows in GalleryCacheMap table = 0

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
pulok

Joined: 2006-11-15
Posts: 15
Posted: Fri, 2008-11-07 04:40

Thanks a lot.
a. I will try netpbm prebuilt.
b. Yes, above information & Toolkits = Thumbnail was direct copy from site admin-> System Maintenance.
c. Site is still in debug mode, if you like to check anything :-)
d. Item count is below:

Quote:
Rows in GalleryAccessMap table = 1026
Rows in GalleryAccessSubscriberMap table = 3352
Rows in GalleryUser table = 658
Rows in GalleryItem table = 3342
Rows in GalleryAlbumItem table = 314
Rows in GalleryCacheMap table = 0

 
pulok

Joined: 2006-11-15
Posts: 15
Posted: Fri, 2008-11-07 07:40

I am completely lost. I installed netpbm and still it is looking for gif instead of jpg. My guess it is not related with toolkit. Something went wrong during upgrade or I have done something stupid. While using netpbm Maintenance ->System information shows Toolkits = Thumbnail! Below is the current output to avoid any confusion.


Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.5 apache
Webserver = Apache
Database = mysqlt 5.0.51a-community, lock.system=flock
Toolkits = Thumbnail
Acceleration = none, none
Operating system = Linux gadolinium.secure-dns.net 2.6.27.2 #1 Wed Oct 22 13:12:14 MDT 2008 i686
Default theme = simplegreen
gettext = enabled
Locale = en_US
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Rows in GalleryAccessMap table = 1026
Rows in GalleryAccessSubscriberMap table = 3352
Rows in GalleryUser table = 658
Rows in GalleryItem table = 3342
Rows in GalleryAlbumItem table = 314
Rows in GalleryCacheMap table = 0

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2008-11-07 16:23
Quote:
I am completely lost. I installed netpbm and still it is looking for gif instead of jpg.

Gallery does not see any activated toolkits:

Quote:
Toolkits = Thumbnail

Quote:
I am completely lost.

PM me (Write to author) you login info and I will have a look.
tell me the path where you placed the netpbm folder. Did you change permissions on the files once you pu them on the server?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
pulok

Joined: 2006-11-15
Posts: 15
Posted: Fri, 2008-11-07 18:04

Too bad. I deleted 2.3 source about an hour back and now trying to restore 2.2.2 from backup sql and reusing the 2.3 g2data directory. This time everything is fine except full size image is not displaying :-). I am still working on it.
I will try to upgrade it again 2.3 soon. I will PM you that issue is reproduced. Thanks for you help and interest to help.
Just wondering any idea about current issue?

 
pulok

Joined: 2006-11-15
Posts: 15
Posted: Sun, 2008-11-09 14:32

I tried again upgrading from 2.2.2 to 2.3. Still it is looking for 'GIF' instead of 'JPG'! While ‘Download photo in original format’ URL display the full photo as usual. Any suggestion how to fix it?

 
pulok

Joined: 2006-11-15
Posts: 15
Posted: Tue, 2008-11-18 17:56

I was somehow able to resolve it. I guess missing watermark created the whole issue. Probably at some point of time I clear cache from lib/support/index.php?cache which deleted the watermark_png (or may be somehow it was deleted) and gallery was still looking for it.

So I simply edit the root album and remove watermark recursively and it works. I also changed graphic toolkit from ImageMagick to NetPBM after upgrading. Now everything works as expected :-)