Loading...
 
Skip to main content

Testing if GD or Imagick works, via Tiki

Status
Closed
Subject
Testing if GD or Imagick works, via Tiki
Version
1.9.x
2.x
Category
  • Usability
  • Feature request
  • Less than 30-minutes fix
Feature
Admin Interface (UI)
Administration
Image Gallery
Infrastructure
Installer (profiles, upgrades and server-related issues)
Resolution status
Fixed or Solved
Submitted by
Marc Laporte
Lastmod by
Marc Laporte
Rating
(0)
Description

tiki-admin.php?page=gal tells me if GD or Imagick is installed. Nice.

But sometimes, it's installed, but it doesn't work as it should. To rule out that the problem is with Tiki, here is an example of a simple php to test GD in real life. It would be nice to add to tiki-admin.php?page=gal

Image
Copy to clipboard
<?php header("Content-type: image/png"); $im = @imagecreate(110, 20) or die("Cannot Initialize new GD image stream"); $background_color = imagecolorallocate($im, 0, 0, 0); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); imagepng($im); imagedestroy($im); ?>
Solution
test for GD working added to 3.0
Importance
5
Easy to solve?
8
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1347
Created
Friday 07 September, 2007 12:46:14 UTC
by Unknown
LastModif
Thursday 28 October, 2021 07:08:46 UTC


Show PHP error messages