SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict chartahir's Avatar
    Join Date
    Oct 2006
    Location
    Karachi, Pakistan
    Posts
    253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Error Using Imagic.

    PHP Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/var/www/html/test/bmp/images/test.jpg' @ constitute.c/ReadImage/526' in /var/www/html/test/bmp/ex3.php:5\nStack trace:\n#0 /var/www/html/test/bmp/ex3.php(5): Imagick->__construct('images/test.jpg')\n#1 {main}\n thrown in /var/www/html/test/bmp/ex3.php on line 5



    PHP Code:
    <?php

    header
    ('Content-type: image/jpeg');

    $image = new Imagick('images/test.jpg');

    // If 0 is provided as a width or height parameter,
    // aspect ratio is maintained
    $image->thumbnailImage(100100);

    echo 
    $image;

    ?>

    Help needed
    chartahir

  2. #2
    SitePoint Evangelist
    Join Date
    Aug 2007
    Posts
    566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I never have used it, but me first guess would be that the image is corrupt.
    no decode delegate for this image format
    seems to indicate that the jpeg file cannot be decoded with the jpeg decoder.
    So, either the file is damaged, or it's not a jpeg.

    Maybe this thread could help you narrowing the problem
    http://www.imagemagick.org/discourse...hp?f=2&t=11060


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •