📚 Looking for current Exponential documentation? This site contains legacy SDK & API reference docs (eZ Publish era). For up-to-date 2026 product documentation, visit doc.exponential.earth.

  ezimage / conversion  

<< Image rules  Image scaling >> 

Image conversion

Converting the image is done by passing the file path to the source image and the output directory to the convert function. Outputting the image in HTML is done by printing the result string as the src of an img tag.

$source = "lib/ezimage/sdk/images/connect.xpm";
$dest_img = $img->convert( $source, "var/cache/" );

print( "<img src="/$dest_img">" );

Exponential Copyright © 1998 - 2026 7x