Author Topic: Mass-generating thumbnails  (Read 6200 times)

0 Members and 1 Guest are viewing this topic.

Offline Alan @ ArtScans

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://www.qcs-software.com
Mass-generating thumbnails
« on: June 25, 2002, 11:18:29 AM »
Hi,

I'm converting an online art gallery from our custom PHP, to 4images, and have come accross a bit of a problem.

I wrote a conversion script to move all of the image records from the old database to the new one, but now I'm left with 500+ images without thumbnails.

Does 4images have the ability to create them (using auto-thumbnailer, for example), or would I have to use an image program to manually create the thumnails then insert each thumbnail name into the images table?

Or, alternativly, is there a flag for the images, that will make 4images think it's a new image, and a thumbnail needs creating for it?  I had a quick look, but couldn't see anything obvious.

While I'm here, a suggestion for the next version (just a small suggestion).  In includes\page_header.php, change the [Control Panel] URL form "admin/" to "admin/index.php" as on a Colbalt RAQ server, going to admin/ will take you to the Raq's admin screens.

Fantastic script by the way.

Thanks,
Alan,
ArtScans.co.uk Admin Team.
Alan Wagstaff,
Software Development Manager, SDT
QCS Software

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Mass-generating thumbnails
« Reply #1 on: June 25, 2002, 01:27:51 PM »
hi,

about thumbnails:

go to your admin screen:

Menue : Generals > Settings > Conversion tool for thumbnails

if you have GD installed on your server, select it (GD 2.0 or above doesn't support GIF pix)
if you have ImageMagick selected
"If you have selected "ImageMagick" or "NetPBM", enter path" most /usr/bin/convert

then try the "Auto Thumbnailer".

cheers
Nicky
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Alan @ ArtScans

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://www.qcs-software.com
Mass-generating thumbnails
« Reply #2 on: June 25, 2002, 02:27:23 PM »
Hi Nicky,

I've done this (set to GD), but still no luck.  Auto-thumbnailer just reports No entries found.

EDIT: Forgot to mention, that GD is installed and working fine, as it's used to create the thumbnails on the original site.

Any other ideas?

Thanks,
Alan,
ArtScans.co.uk Admin Team.
Alan Wagstaff,
Software Development Manager, SDT
QCS Software

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Mass-generating thumbnails
« Reply #3 on: June 25, 2002, 02:38:13 PM »
hi,

can i look into your admin CP...?
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Alan @ ArtScans

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • http://www.qcs-software.com
Solution
« Reply #4 on: June 25, 2002, 07:54:18 PM »
Hi,

For anyone having the same problem, it turned out, it was because I was using URL based images, instead of local files.  Apparently you cannot create thumbnails based on URL images.

In the end, I wrote a script to copy the files over to the local server, then edit the images table to strip the url from the name, and finally use Auto-thumbnailer to create the thumbnails.

Works a treat now, thanks to Nicky.

Thanks,
Alan.
Alan Wagstaff,
Software Development Manager, SDT
QCS Software

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Mass-generating thumbnails
« Reply #5 on: June 25, 2002, 10:21:31 PM »
you're welcome
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi