Not signed in (Sign In)

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

Please sign in or apply for membership to remove the ads
    • CommentAuthoralexa2005
    • CommentTimeJan 31st 2008
     
    Hi

    I can't upload images that were taken with a celular, is that normal?, or do I have to change something?

    Thanks in advance...
    • CommentAuthorKasper
    • CommentTimeFeb 1st 2008
     
    No, there shouldn't be any difference. Are the images JPEGs - if they are, can I download an image from somewhere and try?

    Kasper
    • CommentAuthoralexa2005
    • CommentTimeFeb 1st 2008
     
    Hi Kasper...

    This is de error I get when I try to upload de image:

    Failed: setSourceFilename(C:\apache\apacheServer\caballosalaventa2.com\plogger\images/galeria/album_2/imagen.jpg) set $this->sourceFilename to "C:\apache\apacheServer\caballosalaventa2.com\plogger\images/galeria/album_2/imagen.jpg" in file "phpthumb.class.php" on line 216 $AvailableImageOutputFormats = array(text;wbmp;gif;png;jpeg) in file "phpthumb.class.php" on line 636 $this->thumbnailFormat set to $this->config_output_format "jpeg" in file "phpthumb.class.php" on line 646 $this->thumbnailQuality set to "75" in file "phpthumb.class.php" on line 663 $this->sourceFilename set to "C:/apache/apacheServer/caballosalaventa2.com/plogger/images/galeria/album_2/imagen.jpg" in file "phpthumb.class.php" on line 587 $this->config_cache_directory () is not a directory in file "phpthumb.class.php" on line 704 SetCacheFilename() failed because $this->config_cache_directory is empty in file "phpthumb.class.php" on line 1986 ImageMagickThumbnailToGD() aborting because cannot find convert in $this->config_imagemagick_path (), and `which convert` returned () in file "phpthumb.class.php" on line 830 ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 923 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 1876 exif_thumbnail() does not exist, cannot extract EXIF thumbnail in file "phpthumb.class.php" on line 1920 starting SourceImageToGD() in file "phpthumb.class.php" on line 2073 Not using EXIF thumbnail data because $this->config_use_exif_thumbnail_for_speed is FALSE in file "phpthumb.class.php" on line 2076 Calling ImageCreateFromJPEG(C:/apache/apacheServer/caballosalaventa2.com/plogger/images/galeria/album_2/imagen.jpg) in file "phpthumb.class.php" on line 2138 ImageCreateFromJPEG() was attempted but FAILED in file "phpthumb.class.php" on line 2179 Populating $this->rawImageData and attempting ImageCreateFromStringReplacement() in file "phpthumb.class.php" on line 2182 $this->gdimg_source is still empty in file "phpthumb.class.php" on line 2205 ImageMagickThumbnailToGD() aborting because ImageMagickCommandlineBase() failed in file "phpthumb.class.php" on line 923 ImageMagickThumbnailToGD() failed in file "phpthumb.class.php" on line 2214 phpThumb() v1.6.2-200511240855 All attempts to create GD image source failed (source image probably corrupt), cannot generate thumbnail phpThumb() v1.6.2-200511240855 Unknown image type identified by "?" ( 0xff 0xd8 0xff 0xe0) in SourceImageToGD()

    It only happens when I try to upload a image that was taken with a celular...

    Have you seen this before?
    • CommentAuthorKasper
    • CommentTimeFeb 1st 2008
     
    Kinda hard to read ;-) But it could seem that the difference is that your camera images are containing EXIF data as usual, but that your cellular does not write EXIF data to the images.

    Is it correct that you are using Apache on Windows as your web server?

    Please mail me a working (camera) image and a failing (cellular) image to my mail address, and I will try and see if I can recreate the error and correct it in the code. My mail adress is in my profile.

    Kasper
    • CommentAuthoralexa2005
    • CommentTimeFeb 1st 2008
     
    Hi Kasper,

    Yes, I'm using Apache on Windows, but just for development purposes...

    Right now I don't have pictures (I'm not at home), but I'm going to send you 2 pictures ASAP.

    Thank you in advance...
    • CommentAuthorKasper
    • CommentTimeFeb 18th 2008
     
    I have tried to import your pictures now, and I did not get any errors.

    The thumbnail generator script in "lib\phpthumb" will use GD 2.0+ or GD 1.0+ per default but will also use ImageMagick if it finds it installed on the system. Most web hosts will not install ImageMagick, I too do not have it, and therefore I do not get the ImageMagick problems.

    Take a look in the file "lib\phpthumb\phpThumb.config.php" line 65 and down, it says:
    // ImageMagick configuration
    // If source image is larger than available memory limits as defined above in
    // 'max_source_pixels' AND ImageMagick's "convert" program is available, phpThumb()
    // will call ImageMagick to perform the thumbnailing of the source image to bypass
    // the memory limitation. Leaving the value as NULL will cause phpThumb() to
    // attempt to detect ImageMagick's presence with `which`
    if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') {
    // Windows: set absolute pathname
    $PHPTHUMB_CONFIG['imagemagick_path'] = 'C:\\Program Files\\ImageMagick-6.0.6-Q16\\convert.exe';
    } else {
    // *nix: set absolute pathname to "convert", or leave as null if "convert" is in the path
    //$PHPTHUMB_CONFIG['imagemagick_path'] = '/usr/local/bin/convert';
    $PHPTHUMB_CONFIG['imagemagick_path'] = null;
    }


    I believe putting // in front of the $PHPTHUMB_CONFIG line 73, will stop the script from using ImageMagick, and correct your problem. But maybe it does not matter at all, since you propably will not have ImageMagick running at your web host.

    Kasper
    • CommentAuthoralexa2005
    • CommentTimeFeb 20th 2008
     
    Hi Kasper...

    I tested it, and I still have the same error... There is another way to disable the ImageMagick?

    Another question: This is just for Windows, or am I going to have the same error in Linux?

    Thank you in advance...