Author Topic: Create thumbnail automatically?  (Read 4820 times)

0 Members and 1 Guest are viewing this topic.

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Create thumbnail automatically?
« on: February 09, 2003, 11:20:48 AM »
Is it possible that a thumbnail is created automatically (using ImageMagick, NetPBM or GD) as soon as a user uploads a picture via the provided upload page?

I was looking for this feature in 4images 1.7, but didn't find it so far (despite the fact that I believe that it's very useful, obvious and easily implementable).

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Create thumbnail automatically?
« Reply #1 on: February 09, 2003, 03:22:39 PM »
yes, just set 4images settings in admin control panel.

P.S. auto thumbnail will not work when u logged in as admin and upload picture from upload page.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Create thumbnail automatically?
« Reply #2 on: February 10, 2003, 08:33:38 AM »
I found the setting! Thanks.
But meanwhile I found out that my hoster blocks the exec() and system() calls from php scripts. Hence, I can forget about auto-thumbnail creation  :(  :(  :(

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Create thumbnail automatically?
« Reply #3 on: February 10, 2003, 10:47:18 PM »
My provider sent me the solution.

Quote
system() is disabled in the Apache-module copy of PHP. It is not disabled
in the CGI copy of PHP. Any script that needs to run external processes
has to be run as a CGI. It's simple to do. Just create an .htaccess file
in your domain's document root with this line it it:

AddType php-cgi .php

This worked. I can use NetPBM now properly!

Offline Art By Vicky

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
    • ABV Arts Enterprises
exec() & system() disabled
« Reply #4 on: April 02, 2003, 10:13:22 PM »
I'm hoping someone has a solution for me.  My hoster has blocked both exec() and system() so my images are not resizing to create the appropriate sizes.  I have had multiple conversations with them and they will not change this nor will they provide any suggestions other than to move to another hoster that can help me.  I tried the following suggestion in my document root's .htaccess file and got nothing but error messages.

Quote
system() is disabled in the Apache-module copy of PHP. It is not disabled
in the CGI copy of PHP. Any script that needs to run external processes
has to be run as a CGI. It's simple to do. Just create an .htaccess file
in your domain's document root with this line it it:

AddType php-cgi .php


Does anyone know of anyway to get around this problem?  I can't find another Image Gallery that works like 4Images and really need this to work somehow.  Is there a way to code it into the html templates?

I'd appreciate anyones help.

Thanks,
Vicky
ABVarts.com
RoundTableWebDesign.com
ArtByVicky.com
League of Animal Artists - AnimalArtists.org

Offline geohei

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
Create thumbnail automatically?
« Reply #5 on: April 06, 2003, 08:30:14 PM »
Did my .htaccess in the root directory not provide any change at all?