I've a problem with the ltrim fucntion: sometimes it remove more characters than it must, so it's better to delete the line
<?
// $image = rtrim ($image, $endchar);
?>
in the XMP_remove_from_jpeg function
I've a problem with the ltrim fucntion: sometimes it remove more characters than it must, so it's better to delete the line
<?
// $image = rtrim ($image, $endchar);
?>
in the XMP_remove_from_jpeg function