Menu

Error: Cannot create image!

2008-10-24
2013-04-25
  • Fred Mulharin

    Fred Mulharin - 2008-10-24

    ust installed Linpha v 1.3.4 on a Centos build, with the following version of Image Magik (Usewd Yum doew download and Install Image Magix)

    [root@thrtk2 sql]# convert -version
    Version: ImageMagick 6.2.8 04/17/08 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
    Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC

    I thumbnails for all of the pic are good, but will not display the "mainimage" or view any of the various size options

    Get the following error when I right click on the Image and choose "vew image"

    mysql error: [1062: Duplicate entry 'sql/cache/2/12-50-384-266--.jpg' for key 1] in EXECUTE("INSERT INTO linpha_photo_cache (photo_id,date,filename,size) VALUES (12,'2008-10-24 09:51:26','sql/cache/2/12-50-384-266--.jpg','0')")
    Error while creating image albums/Photos/ejdSteveIsrael.jpg! Return Value: 1
    convert -quality 50 -size "266x384" "albums/Photos/ejdSteveIsrael.jpg"[0] -resize "266x384" -strip -colorspace RGB "./sql/cache/2/12-50-384-266--.jpg"

    ./sql/cache/2/12-50-384-266--.jpg

    Error: Cannot create image!

     
    • bzrudi

      bzrudi - 2008-10-26

      Hi,

      please try disabling the image cache first and start a rebuild all thumbs via the admin menu. It may have to do with the CentOS SElinux policy also. I remember this problem from months? years? ago but I do no longer know the solution to it ;-) Bit it should still be here around in the forum....

      cheers bzrudi

       

Log in to post a comment.