Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Chief




Joined: Mar 15, 2005
Posts: 10

PostPosted: Tue Mar 22, 2005 11:41 am
Reply with quote

Check this

http://www.jtf-2.com/modules.php?name=Maps&cat=Delta_Force_:_Black_Hawk_Down&id=2

All thumbnails look like 16 colors ... you know why ?

_________________
www.jtf-2.com 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Mar 22, 2005 11:52 am
Reply with quote

Access Denied!

There could be alot of reasons, one is that when an image goes from 1024x768 to 120x90 its gonna look different even if you use photoshop or whatever.

what is the average size of you original images?
have you tried making the thumbnail size bigger in the config?
 
View user's profile Send private message Visit poster's website
Chief




Joined: Mar 15, 2005
Posts: 10

PostPosted: Tue Mar 22, 2005 12:15 pm
Reply with quote

Oups ... permission set to All Visitor ... check it !

_________________
www.jtf-2.com 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Tue Mar 22, 2005 1:50 pm
Reply with quote

well it would probaly look better if the thumbnail was kept in proportion. ex. for images that are 1024x786 or 800x600 some proportional sizes would be 120x90(default), 160x120, 200x150. try changing to a different size in the config, then empty out your thumb folder and go to maps admin page and you will see a button to generate new thumbnails.

I'll look in to making the color quality higher for the next release.
 
View user's profile Send private message Visit poster's website
Chief




Joined: Mar 15, 2005
Posts: 10

PostPosted: Tue Mar 22, 2005 3:39 pm
Reply with quote

Same result ... but more pixelized ... its 200 x 150 now... I have try 640 x 480 and different size and its look horrible lol

_________________
www.jtf-2.com 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
wax
Guest






PostPosted: Thu Mar 24, 2005 4:21 pm
Reply with quote

To fix this problem

find this in your thumbs.php file around line 74, you are looking for the Imagecreate to be renamed Imagecreatetruecolor

Code:
function thumb_jpeg($mapimage, $thumbwidth, $thumbheight, $spath, $dpath){
   $destimg = ImageCreate($thumbwidth, $thumbheight);
   $srcimg = ImageCreateFromJPEG($spath."/".$mapimage);
   ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $thumbwidth, $thumbheight, ImageSX($srcimg), ImageSY($srcimg));
   ImageJPEG($destimg, $dpath."/".$mapimage);
}


function thumb_png($mapimage, $thumbwidth, $thumbheight, $spath, $dpath){
   $destimg = ImageCreate($thumbwidth, $thumbheight);
   $srcimg = ImageCreateFromPNG($spath."/".$mapimage);
   ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $thumbwidth, $thumbheight, ImageSX($srcimg), ImageSY($srcimg));
   ImagePNG($destimg, $dpath."/".$mapimage);


And change it to this

Code:
function thumb_jpeg($mapimage, $thumbwidth, $thumbheight, $spath, $dpath){
   $destimg = imagecreatetruecolor($thumbwidth, $thumbheight);
   $srcimg = ImageCreateFromJPEG($spath."/".$mapimage);
   ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $thumbwidth, $thumbheight, ImageSX($srcimg), ImageSY($srcimg));
   ImageJPEG($destimg, $dpath."/".$mapimage);
}


function thumb_png($mapimage, $thumbwidth, $thumbheight, $spath, $dpath){
   $destimg = imagecreatetruecolor($thumbwidth, $thumbheight);
   $srcimg = ImageCreateFromPNG($spath."/".$mapimage);
   ImageCopyResized($destimg, $srcimg, 0, 0, 0, 0, $thumbwidth, $thumbheight, ImageSX($srcimg), ImageSY($srcimg));
   ImagePNG($destimg, $dpath."/".$mapimage);
 
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Thu Mar 24, 2005 5:43 pm
Reply with quote

Nice! Thank you!
 
View user's profile Send private message Visit poster's website
Chief




Joined: Mar 15, 2005
Posts: 10

PostPosted: Thu Mar 24, 2005 10:08 pm
Reply with quote

Yep ... work nice ... Thx !

_________________
www.jtf-2.com 
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger ICQ Number
jeeep
Guest






PostPosted: Wed Mar 01, 2006 8:20 pm
Reply with quote

where is thumgs.php? i've looked all around for it but cant find it Laughing
 
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Wed Mar 01, 2006 8:53 pm
Reply with quote

jeeep wrote:
where is thumgs.php? i've looked all around for it but cant find it Laughing


Hi, It is in...

modules/Maps/admin/inc/thumb.php

Map Manager 1.1 already has this fix included.
 
View user's profile Send private message Visit poster's website
jeeep
Guest






PostPosted: Thu Mar 02, 2006 12:52 am
Reply with quote

thanks! i just went ahead and d-loaded the new one! and i love it Very Happy

one thing i would love to see though, is where the thumbnails could be .gif images so we could make an animated gif go there!
 
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours
Forums ©