| Author |
Message |
Chief

Joined: Mar 15, 2005
Posts: 10
|
Posted:
Tue Mar 22, 2005 11:41 am |
|
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Mar 22, 2005 11:52 am |
|
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? |
| |
|
|
 |
Chief

Joined: Mar 15, 2005
Posts: 10
|
Posted:
Tue Mar 22, 2005 12:15 pm |
|
Oups ... permission set to All Visitor ... check it ! |
_________________ www.jtf-2.com |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Mar 22, 2005 1:50 pm |
|
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. |
| |
|
|
 |
Chief

Joined: Mar 15, 2005
Posts: 10
|
Posted:
Tue Mar 22, 2005 3:39 pm |
|
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 |
|
|
 |
wax
Guest

|
Posted:
Thu Mar 24, 2005 4:21 pm |
|
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


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Thu Mar 24, 2005 5:43 pm |
|
|
|
 |
Chief

Joined: Mar 15, 2005
Posts: 10
|
Posted:
Thu Mar 24, 2005 10:08 pm |
|
|
|
 |
jeeep
Guest

|
Posted:
Wed Mar 01, 2006 8:20 pm |
|
where is thumgs.php? i've looked all around for it but cant find it  |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Wed Mar 01, 2006 8:53 pm |
|
| jeeep wrote: |
where is thumgs.php? i've looked all around for it but cant find it  |
Hi, It is in...
modules/Maps/admin/inc/thumb.php
Map Manager 1.1 already has this fix included. |
| |
|
|
 |
jeeep
Guest

|
Posted:
Thu Mar 02, 2006 12:52 am |
|
thanks! i just went ahead and d-loaded the new one! and i love it
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! |
| |
|
|
 |
|
|