View Full Version : Zabbix 1.4 unable to create icon/image upload
When I go to create an icon and select an image to upload it seems to generate this error in an image format.
imagecreatefromstring(): [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Data is not in recognized format
imagesx(): supplied argument is not a valid Image resource [/usr/share...
imagesy(): supplied argument is not a valid Image resource [/usr/share...
imagepng(): supplied argument is not a valid Image resource [/usr/share...
imagedestroy(): supplied argument is not a valid Image resource [/usr/share...
I have saved this with photoshop int png format
any ideas?
Still have had no luck with this, is there a limit to the dimensions of a png you can upload?
It hink that GD library did not recognized PNG file generated by Photoshop. Did you use some fancy options? Are you sure it is a PNG file?
100% positive it's png, I also tried saving it non-interlaced and interlaced with no luck. I took the png saved file and ran i through paintbrush just in case it was saving some extra data to the file or something also with no luck. I will try some more options like saving it to .jpg from photoshop and doing paintbrush to do the conversion to png. I know I used Cisco Networkers Icons from a power point and saved them through paint brush and they worked good.
I'm having this same problem too. I've tested the upload both with a JPG and a PNG file, both saved from Paint.NET and uploaded using Firefox.
I'm using Zabbix 1.4.1, and all of this worked just fine under Zabbix 1.1.6 (the version I had before the upgrade), with the very same icons. PHP and Apache configuration haven't been modified (in fact they probably haven't even been restarted). Neither it is a database issue, because I've deleted my old db and created a new one from scratch (after the upgrade the Zabbix server process kept crashing in an unacceptable way).
I've tried to save one of the few original images and upload it as a new one. I get the same error, despite it being surely in the right PNG format. Seems like there's some problem before the image gets escaped for insertion in the database...
...seems like pg_unescape_bytea doesn't properly reverse pg_escape_bytea... :confused:
(my setup is based on Postgres)
Anyone having this problem under MySQL?
aalexanderr
19-07-2007, 11:56
Anyone having this problem under MySQL?
All my monitoring station works with mysql base. no.. This problem i have't seen before.
Partially solved the problem for me: I had the full dump of the Zabbix 1.1 database, I selected the rows of the images I used (and wanted to use again), and imported them in the new database. Now it works, I can't add new images, but at least I have those I need.
During the insert, the database returned the following warnings (in case they could be useful):
WARNING: nonstandard use of \\ in a string literal
LINE 1: ...T INTO images VALUES (107, 1, 'netblock_unreach', '\\211PNG\...
^
HINT: Use the escape string syntax for backslashes, e.g., E'\\'.
INSERT 80993727 1