Image upload not working properly

XMLWordPrintable

    • Type: Incident report
    • Resolution: Cannot Reproduce
    • Priority: Major
    • None
    • Affects Version/s: 1.4.5
    • Component/s: Frontend (F)
    • None
    • Environment:
      Centos 4.5, zabbix 1.4.6, postgres 8.2.x
      browser: tried both firefox 3 and safari

      When trying to create a new image (icon for map), I get the following error when trying to display the image (i.e. it uploads ok, but does not display properly):

      (main text of the image, html not included)
      imagecreatefromstring() :Data is not in a recognized format [image.php:58]
      imagepng(): supplied argument is not a valid Image resource [/include/config.inc.php:1683]
      imagedestroy(): supplied argument is not a valid Image resource [/include/config.inc.php:1683]

      To reproduce:
      Go to general, images. Click on one of the icons to display, right click, save as.
      Go back, click create new image, give it a name, and upload the png file you just downloaded. Should see these errors, at least with a postgres backend.

        1. zabbixerror.png
          2 kB
          Steve Ruiz
        2. zabbix-1.8.5_mysql_image_fix.patch
          2 kB
          gabhosh
        3. zabbix-1.8.2_mysql_image_fix.patch
          1 kB
          Andrew Flannery
        4. zabbix-1.6.6-postgres-image-fix.patch
          1 kB
          Aron Ujvari

            Assignee:
            Unassigned
            Reporter:
            Steve Ruiz
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: