Strage colours of thumbs and images

ColinDH

Joined: 2003-07-10
Posts: 17
Posted: Mon, 2008-05-12 22:04

Recently, when I upload images from local machine either using upload applet or Gallery Remote (1.5.1 build 36 and 37) the thumbs have a strange (IR like ) colour. Have resize to 800px but this makes no differnce. Don't know why it is suddenly doing that and can't get around it. Also can't find anything in forum. Using the 'Add item' from web browser works but that is only good for a limited number of images and I want to upload about 30-40 at a time.

Gallery info dump:

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.2 cgi
Webserver = Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_jk/1.2.25 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.8b
Database = mysqli 5.0.45-community-log, lock.system=flock
Toolkits = Thumbnail, NetPBM
Acceleration = none, none
Operating system = Linux islander.eukhost.com 2.6.18-8.1.15.el5 #1 SMP Mon Oct 22 08:32:04 EDT 2007 i686
Default theme = PGtheme
gettext = enabled
Locale = en_GB
Browser = Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; FDM)
Rows in GalleryAccessMap table = 67
Rows in GalleryAccessSubscriberMap table = 908
Rows in GalleryUser table = 3
Rows in GalleryItem table = 906
Rows in GalleryAlbumItem table = 49
Rows in GalleryCacheMap table = 0

See last 5 images at:

http://www.condor-consulting.com/mendham/joomla/gallery2/main.php?g2_itemId=2520&g2_enterAlbum=1

Help appreciated and thanks in advance.

Colin

 
maT42

Joined: 2008-05-06
Posts: 7
Posted: Tue, 2008-05-13 07:58

Hey Colin,
this problem is known, i answered in the last post. It is a wrong ColorModel used in the java-style resize method. I hope someone will fix this soon... if not, feel free to contact me, i'll send you the bugfixed version.

Cheers,
Mat

 
ColinDH

Joined: 2003-07-10
Posts: 17
Posted: Tue, 2008-05-13 08:34

Not sure I understand at this stage but have PM'd you and will implement fix and post conclusion here. Don't undertsnad why it was working OK (used Gallery Remote for ages) and then suddenly starts doing this.

 
maT42

Joined: 2008-05-06
Posts: 7
Posted: Wed, 2008-05-14 11:34

Sorry for the delay, I just answered you by PM. Even though I'm pretty optimistic that my version is perfectly fine, I wanna stress that I am NOT an official developer here and obviously dont give any guarantees regarding correctness.

Anyhow, it fixed the issue for me by changing 2 LOC... should be fine. Have tested it on several different gallery2 installations, no problems.

 
ColinDH

Joined: 2003-07-10
Posts: 17
Posted: Wed, 2008-05-14 12:05

Hey, I'm just grateful for the help. I will record here any success or issues for others.

Thanks, really appreciate your input

Colin

 
ColinDH

Joined: 2003-07-10
Posts: 17
Posted: Mon, 2008-05-19 12:43

Solution found.

Image Magic wasn't activated. I thought I was using NetPBM for image management but as soon as I activated ImageMagic I was able to upload images with Gallery remote. Simple when you know.

Thanks all especially for the patience of maT42.

Colin

 
mhugo

Joined: 2008-07-03
Posts: 2
Posted: Mon, 2008-07-07 08:44

How was it solved specifically?

I have both netpbm and imagemagick installed in the server. I switched to IM as the default.

 
dbroc

Joined: 2008-10-01
Posts: 3
Posted: Fri, 2008-10-03 06:29

Hi

You wrote :
"Sorry for the delay, I just answered you by PM. Even though I'm pretty optimistic that my version is perfectly fine, I wanna stress that I am NOT an official developer here and obviously dont give any guarantees regarding correctness.
Anyhow, it fixed the issue for me by changing 2 LOC... should be fine. Have tested it on several different gallery2 installations, no problems.
"

Is it possbile to get your patch?
I sill have the probleme, whatever the graphics toolkit I use (Imagemagick, NetPBM etc)

Thanks

 
ironfrown
ironfrown's picture

Joined: 2008-10-11
Posts: 8
Posted: Sat, 2008-10-18 02:04

I have the same problem. What I access the G2 from one of my PCs it uploads perfect images, when I upload it from another it is total rubbish. This only happens when the applet handles the compression of images. I noticed that on on the 'good' PC I have an older version of Java Runtime (1.5), whereas the 'bad' one has the most recent update version 1.6. Does it make the difference? I have no imagemagick installed on the server but NetPBM and GD2 are working just fine. It is definitely the Java problem!

Jacob

 
ironfrown
ironfrown's picture

Joined: 2008-10-11
Posts: 8
Posted: Sat, 2008-10-18 02:11

By the way, it seems that the problem occurs when the Upload Applet converts my RGB images to CMYK. The conversion must have happened automatically because there is no option in the applet to control it.

Jacob

 
ironfrown
ironfrown's picture

Joined: 2008-10-11
Posts: 8
Posted: Sat, 2008-10-18 04:42

Installing Image Magic and Gallery Remote (on the client machine - not the server) seems to have fixed the problem. Interestingly, during installation Gallery Remote nominated Java 1.5 as its preferred Java version to work with (and not Java 1.6 which is also available on the system).

Jacob

 
robmills

Joined: 2007-08-23
Posts: 16
Posted: Mon, 2009-08-17 20:01

I have a slightly more subtle problem. I am using GD and I notice that the resized images are somewhat less saturated or flatter than the originals. Not dramatic but the resized images are a bit washed out. I have tried uploading images with srgb and adobe rgb 1998 profiles. No difference.

Rob

Gallery 2.3
X-treme

look at http://www.signsoflife.co.za/gallery2/public/recent/Dance

 
robmills

Joined: 2007-08-23
Posts: 16
Posted: Mon, 2009-08-17 20:06

I have a slightly more subtle problem. I am using GD and I notice that the resized images are somewhat less saturated or flatter than the originals. Not dramatic but the resized images are a bit washed out. I have tried uploading images with srgb and adobe rgb 1998 profiles. No difference.

Rob

Gallery 2.3
X-treme

look at http://www.signsoflife.co.za/gallery2/public/recent/Dance