Author Topic: Canīt create thumbnails, please help.  (Read 7053 times)

0 Members and 1 Guest are viewing this topic.

Offline WhoMe

  • Newbie
  • *
  • Posts: 17
    • View Profile
Canīt create thumbnails, please help.
« on: December 28, 2006, 10:16:31 PM »
Iīm new to this board and to 4images gallery-script.

I installed the script yesterday without any problems, but it seems that neither of the 3 thumbnail-functions are working.
I could upload images without any problems or error, but the script couldnīt auto-create any thumbnails.  :(

Today i tried to reinstall the whole script, but i have the same problem with creating thumbnails.
Iīm sure that both ImageMagick and GD2 is installed on my own server.

Does someone else have the same problem, or is it just me!?  :?

I really like this script, so i hope that someone could help me with this a.s.a.p.
(Iīm running the script "local", so i canīt post a link, sorry.)

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #1 on: December 28, 2006, 10:34:52 PM »

1) You have to set "Auto-create thumbnail" in the ACP to "Yes".
 If you did this, the thumbnails shoud create automatically after an upload from the memebers area
2) If that doesn't work, check if you did set a conversion tool for thumb-creation in the ACP...
3) If you upload images from the ACP the thumbnails aren't created automatically, you have to use the "Auto-Thumbnailer" there after upload...

Offline WhoMe

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #2 on: December 28, 2006, 10:42:50 PM »

1) You have to set "Auto-create thumbnail" in the ACP to "Yes".
 If you did this, the thumbnails shoud create automatically after an upload from the memebers area
2) If that doesn't work, check if you did set a conversion tool for thumb-creation in the ACP...
3) If you upload images from the ACP the thumbnails aren't created automatically, you have to use the "Auto-Thumbnailer" there after upload...
Aha, ok...

I tried to upload a image as a normal user and it worked.
The script (ImageMagick) created a thumbnail without any problem.

But when i view (click on the thumbnail) the uploaded image is very BIG (as normal). Is there a way to even make the image smaller when viewing it without loose the original image size (widht/height)!? (Hard to explain.)

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #3 on: December 28, 2006, 11:08:29 PM »

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #4 on: December 29, 2006, 12:03:52 AM »
This is something you may want:

or even simplier solution that would scale down the image when displayed (perhaps that what you wanted)
in media templates (templates/<your template>/jpg.html, etc) use something like this:

Code: [Select]
<!-- Template file for JPG Files -->
<script language="javascript">
var MaxWidth = 440;

var WidthOrig = 0;
var HeightOrig = 0;
function ImgFixSize(img)
{
  if (WidthOrig)
  {
    img.width = WidthOrig;
    img.height = HeightOrig;
    WidthOrig = 0;
  }
  else if (img.width > MaxWidth)
  {
    WidthOrig = img.width;
    HeightOrig = img.height;
    img.style.cursor = "pointer";
    img.height = Math.round((MaxWidth/img.width) * img.height);
    img.width = MaxWidth;
  }
}
</script>
<img src="{media_src}" border="1" alt="{image_name}"{width_height} onLoad="ImgFixSize(this)" onClick="ImgFixSize(this)" /><br />

Offline WhoMe

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #5 on: December 30, 2006, 02:35:07 AM »
Thanks!
That seems to work.  :)

But is it possible to open the fullsize image on a new window (pop-up) when clicking on it in "details.php"!?
I also want to show the download-buttons on the new window under the fullsized image, like it is on "details.php"?

Offline CeJay

  • Sr. Member
  • ****
  • Posts: 425
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #6 on: December 31, 2006, 09:36:42 AM »
Quote
But is it possible to open the fullsize image on a new window (pop-up) when clicking on it in "details.php"!?
Try these to see if they are something you like or gives you more help then I can give:

http://www.4homepages.de/forum/index.php?topic=3236.0

http://www.4homepages.de/forum/index.php?topic=11198.0

http://www.4homepages.de/forum/index.php?topic=3938.0

Offline WhoMe

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #7 on: March 03, 2007, 01:31:31 PM »
I really need some help with creating medium sized pictures automaticly when i upload new images.
As it is right now, the BIG picture is first shown in fullsize on the details page before itīs resizing to the with i hardcoded in the script.

So it would be better to even create a medium sized picture (like the thumbnail) when uploading new pictures and then show the medium picture on the details page.
Then when someone clicks on the medium picture, then the large original pricture will be opend in a new window.  All of this is really hard to explain for me, but i think that some of you know what iīm trying to say.  ;)

Is there a mod for this, or can someone please help me!?

Thanks in advance!

Offline WhoMe

  • Newbie
  • *
  • Posts: 17
    • View Profile
Re: Canīt create thumbnails, please help.
« Reply #8 on: March 05, 2007, 06:45:14 PM »
I havenīt noticed this before, but it seems that it doesnīt work to download any images when clicking on the "Download"-button.
The image opends in "textmode" instead of downloading it. Why is that?

Please, help...  :(