{"id":57203,"date":"2022-10-31T03:01:21","date_gmt":"2022-10-30T17:01:21","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/ITblog\/?p=57203"},"modified":"2022-10-30T12:35:40","modified_gmt":"2022-10-30T02:35:40","slug":"image-absolute-url-conversions-via-php-gd-filters-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/image-absolute-url-conversions-via-php-gd-filters-tutorial\/","title":{"rendered":"Image Absolute URL Conversions via PHP GD Filters Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Image Absolute URL Conversions via PHP GD Filters Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard_absolute.jpg\" title=\"Image Absolute URL Conversions via PHP GD Filters Tutorial\" style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Image Absolute URL Conversions via PHP GD Filters Tutorial<\/p><\/div>\n<p>So far with the progress regarding yesterday&#8217;s <a title='Image Conversions via PHP GD Filters Tutorial' href='#icphpgdft'>Image Conversions via PHP GD Filters Tutorial<\/a>&#8216;s PHP image conversion web application, it has been &#8230;<\/p>\n<ul>\n<li><font size=1>all<\/font> relative (ie. relative image URL(s) or file specification) &#8230; but, today, quietly, we allow for &#8230;<\/li>\n<li>absolute image URL(s), comma separated as required<\/li>\n<\/ul>\n<p> &#8230; that will not succeed with all absolute URL(s), but with those images on web servers that allow the PHP <a target=_blank href='http:\/\/www.w3schools.com\/php\/func_filesystem_file_get_contents.asp' title='PHP file_get_contents'>file_get_contents<\/a> function access to their image data.<\/p>\n<p>Please seek permission to use images this way, as required, in <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php--GETME\" title='convert_wildcard.php'>the changed<\/a>, particularly regarding PHP <a target=_blank href='https:\/\/www.php.net\/manual\/en\/function.basename.php' title='PHP basename function information'>basename<\/a> usage, as well as a <font color=blue>&#8220;first time that we can remember&#8221;<\/font> application of PHP <a target=_blank href='https:\/\/www.php.net\/manual\/en\/function.preg-replace.php' title='PHP preg_replace info'>preg_replace<\/a> &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\nreturn file_get_contents(<font color=purple>str_replace('https:','ht<\/font><font color=purple>tp:',<\/font><font color=blue>preg_replace('{^\/\/}','ht<\/font><font color=blue>tp:\/\/',$ourfilename)<\/font><font color=purple>)<\/font>);<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; PHP usage we normally tackle via Javascript <a target=_blank href='https:\/\/www.w3schools.com\/jsref\/jsref_replace.asp' title='Javascript replace info from W3schools'>replace<\/a> regex usage such as &#8230;<\/p>\n<p><code><br \/>\n<font color=blue>ourfilename.replace(\/^\\\/\\\/\/g, 'ht<\/font><font color=blue>tp:\/\/')<\/font><font color=purple>.replace('https:','ht<\/font><font color=purple>tp:')<\/font><br \/>\n<\/code><\/p>\n<p> &#8230; within <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php--GETME\" title='convert_wildcard.php'>convert_wildcard.php<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php\" title='convert_wildcard.php'>PHP web application<\/a> you can also <a href='#ific'>try below<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/new-image-conversions-via-php-gd-filters-tutorial\/'>Image Absolute URL Conversions via PHP GD Filters Tutorial<\/a>.<\/p-->\n<hr>\n<p id='icphpgdft'>Previous relevant <a target=_blank title='Image Conversions via PHP GD Filters Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/image-conversions-via-php-gd-filters-tutorial\/'>Image Conversions via PHP GD Filters Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Image Conversions via PHP GD Filters Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard_filtering.jpg\" title=\"Image Conversions via PHP GD Filters Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Image Conversions via PHP GD Filters Tutorial<\/p><\/div>\n<p>Once in the (PHP) <a target=_blank title='PHP GD' href='https:\/\/www.php.net\/manual\/en\/function.gd-info.php'>GD<\/a><font size=1>-land<\/font> of yesterday&#8217;s <a title='Image Conversions via PHP GD Primer Tutorial' href='#icphpgdpt'>Image Conversions via PHP GD Primer Tutorial<\/a>, you&#8217;d be mad not to facilitate some image filtering which GD is so good at.  And so, we have included an optional usage dropdown as per &#8230;<\/p>\n<p><select size=\"20\" data-id=\"sfilter\" data-onchange=\"zoomsame(this);\"><option value=\"\">Image Filter &#8230;<\/option><option value=\" \">Image Filter Ask Arguments &#8230;<\/option><!--option style=display:none; id=redoopt value=redo>Undo Last ...<\/option><option value=flip>Flip<\/option><option value=flipvertical>Flip Vertical<\/option><option value=fliphorizontal>Flip Horizontal<\/option><option value=rotation>Rotation<\/option--><option value=\"emboss\">Emboss<\/option><option value=\"negate\">Negate<\/option><option value=\"edge\">Edge<\/option><option value=\"negedge\">Negedge<\/option><option value=\"grayscale\">Grayscale<\/option><option value=\"gaussianblur\">Gaussian Blur<\/option><option value=\"selectiveblur\">Selective Blur<\/option><option value=\"sharpen\">Sharpen<\/option><option value=\"boxblur\">Boxblur<\/option><option value=\"colourize\">Colourize<\/option><option value=\"pixellate\">Pixellate<\/option><option value=\"smooth\">Smooth<\/option><option value=\"contrast\">Contrast<\/option><option value=\"brightness\">Brightness<\/option><option value=\"sketchy\">Sketchy<\/option><option value=\"colourizered\">Colourize Red<\/option><option value=\"colourizegreen\">Colourize Green<\/option><option value=\"colourizeblue\">Colourize Blue<\/option><\/select><\/p>\n<p> &#8230; into the mix.  We add this select element &#8220;dropdown&#8221; within the HTML form method=POST action=&#8221;Here&#8217;s looking at you kid&#8221; arrangement.  Initially it gets assigned just an ID attribute, with no NAME attribute, which is an ideal arrangement when functionality is optional.  And so, if the user chooses a real &#8220;filter&#8221; here it gets assigned an appropriate NAME attribute <font color=blue>as per<\/font> the PHP&#8217;s Javascript dropdown onchange event logic &#8230;<\/p>\n<p>&lt;?php echo &#8221;<br \/>\n<code><br \/>\nfunction zoomsame(tvo) {<br \/>\n  var tv=tvo.value;<br \/>\n  var pa=null;<br \/>\n  if (tv.trim() == '' && ('' + tv.length) != '0') { aska=true; }<br \/>\n  if (tv.trim() != '') {<br \/>\n    <font color=blue>tvo.name=tv.trim();<\/font><br \/>\n    if (aska && askastr.indexOf(';' + tv.trim().toLowerCase() + ';') != -1) {<br \/>\n     pa=prompt('Optionally enter argument(s) for ' + tv.trim(), askastr.split(';' + tv.trim().toLowerCase() + ';')[1].split(';')[0]);<br \/>\n     if (pa != null) {<br \/>\n      if (pa.trim() == '') { pa=null; }<br \/>\n     }<br \/>\n    }<br \/>\n    if (pa != null) {<br \/>\n      if (('' + pa.split(',').length) == '3') {<br \/>\n        document.getElementById('rotation').name='args';<br \/>\n        document.getElementById('rotation').value=pa;<br \/>\n      } else {<br \/>\n        document.getElementById('rotation').name='arg1';<br \/>\n        document.getElementById('rotation').value=pa;<br \/>\n      }<br \/>\n    } else {<br \/>\n      document.getElementById('rotation').name='rotation';<br \/>\n      document.getElementById('rotation').value='' + document.getElementById('trot').value;<br \/>\n    }<br \/>\n    if (tv.trim().toLowerCase() == 'redo') {<br \/>\n    redo();<br \/>\n    }     \/\/alert(11);<br \/>\n    \/\/}<br \/>\n  }<br \/>\n}<br \/>\n<\/code><br \/>\n&#8220;; ?&gt;<\/p>\n<p> &#8230; turning a &#8220;display useful only&#8221; HTML dropdown element into one whose value is transferred with <font size=1>self-<\/font>navigation to interest the PHP &#8220;recall&#8221; logic &#8230;<\/p>\n<p>&lt;?php<br \/>\n<code><br \/>\n function ourimagecreatefromfile($zfilename) {<br \/>\n    global $div_img, $ext;<br \/>\n      \/\/file_put_contents(\"qwe.qweaa\", $zfilename);<br \/>\n    if (isset($_GET['emboss']) || isset($_POST['emboss'])) {<br \/>\n      \/\/file_put_contents(\"qwe.qwe\", str_replace(' ','+',urldecode($_GET['emboss'])) . str_replace(' ','+',urldecode($_POST['emboss'])) . $zfilename);<br \/>\n      \/\/file_put_contents(\"qwe.qwex\", $_SERVER['HTTP_REFERER']);<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['emboss'])) . str_replace(' ','+',urldecode($_POST['emboss'])) . $zfilename));<br \/>\n      $emboss = getpostmaybe('arg1',array([-2, -1, 0], [-1, 1, 1], [0, 1, 2]));<br \/>\n      \/\/file_put_contents(\"qwe.qwexx\", $_SERVER['HTTP_REFERER']);<br \/>\n     \/\/imageconvolution($jm_php, $emboss, 1, 0);<br \/>\n      imagefilter($jm_php, IMG_FILTER_EMBOSS);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      \/\/file_put_contents(\"qwe.qwez\", $_SERVER['HTTP_REFERER']);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n      \/\/file_put_contents(\"qwe.qwey\", \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\");<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['edge']) || isset($_POST['edge'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['edge'])) . str_replace(' ','+',urldecode($_POST['edge'])) . $zfilename));<br \/>\n      $edge_detect = getpostmaybe('arg1',array([-1, -1, -1], [-1, 8, -1], [-1, -1, -1]));<br \/>\n      imageconvolution($jm_php, $edge_detect, 1, 0);<br \/>\n      imageconvolution($jm_php, $edge_detect, 1, 255);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['negedge']) || isset($_POST['negedge'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['negedge'])) . str_replace(' ','+',urldecode($_POST['negedge'])) . $zfilename));<br \/>\n      $edge_detect = getpostmaybe('arg1',array([-1, -1, -1], [-1, 8, -1], [-1, -1, -1]));<br \/>\n      imageconvolution($jm_php, $edge_detect, 1, 0);<br \/>\n      \/\/imageconvolution($jm_php, $edge_detect, 1, 255);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['sharpen']) || isset($_POST['sharpen'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['sharpen'])) . str_replace(' ','+',urldecode($_POST['sharpen'])) . $zfilename));<br \/>\n      $sharpen = getpostmaybe('arg1',array([0, -1, 0], [-1, 5, -1], [0, -1, 0]));<br \/>\n      imageconvolution($jm_php, $sharpen, 1, 0);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['boxblur']) || isset($_POST['boxblur'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['boxblur'])) . str_replace(' ','+',urldecode($_POST['boxblur'])) . $zfilename));<br \/>\n      $box_blur = getpostmaybe('arg1',array([1, 1, 1], [1, 1, 1], [1, 1, 1]));<br \/>\n      imageconvolution($jm_php, $box_blur, 9, 0);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['grayscale']) || isset($_POST['grayscale'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['grayscale'])) . str_replace(' ','+',urldecode($_POST['grayscale'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_GRAYSCALE);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['gaussianianblur']) || isset($_POST['gaussianblur'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['gaussianblur'])) . str_replace(' ','+',urldecode($_POST['gaussianblur'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_GAUSSIAN_BLUR);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['selectiveblur']) || isset($_POST['selectiveblur'])) {<br \/>\n<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['selectiveblur'])) . str_replace(' ','+',urldecode($_POST['selectiveblur'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_SELECTIVE_BLUR);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n<br \/>\n    } else if (isset($_GET['negate']) || isset($_POST['negate'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['negate'])) . str_replace(' ','+',urldecode($_POST['negate'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_NEGATE);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['colourizered']) || isset($_POST['colourizered']) || isset($_GET['colorizered']) || isset($_POST['colorizered'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['colourizered'])) . str_replace(' ','+',urldecode($_POST['colourizered'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_COLORIZE, getpostmaybe('arg1',rand(0,255)), 0, 0); \/\/, 100);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['colourizegreen']) || isset($_POST['colourizegreen']) || isset($_GET['colorizegreen']) || isset($_POST['colorizegreen'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['colourizegreen'])) . str_replace(' ','+',urldecode($_POST['colourizegreen'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_COLORIZE, 0, getpostmaybe('arg1',rand(0,255)), 0); \/\/, 100);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['colourize']) || isset($_POST['colourize']) || isset($_GET['colorize']) || isset($_POST['colorize'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['colourize'])) . str_replace(' ','+',urldecode($_POST['colourize'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_COLORIZE, getpostmaybe('arg1',rand(0, 255)), getpostmaybe('arg2',rand(0, 255)), getpostmaybe('arg3',rand(0, 255))); \/\/, 100);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['colourizeblue']) || isset($_POST['colourizeblue']) || isset($_GET['colorizeblue']) || isset($_POST['colorizeblue'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['colourizeblue'])) . str_replace(' ','+',urldecode($_POST['colourizeblue'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_COLORIZE, 0, 0, getpostmaybe('arg1',rand(0,255))); \/\/, 100);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['pixellate']) || isset($_POST['pixellate']) || isset($_GET['pixelate']) || isset($_POST['pixelate']))  {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['pixellate'])) . str_replace(' ','+',urldecode($_POST['pixellate'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_PIXELATE, getpostmaybe('arg1',rand(1, 9))); \/\/ was 3<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['smooth']) || isset($_POST['smooth'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['smooth'])) . str_replace(' ','+',urldecode($_POST['smooth'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_SMOOTH, getpostmaybe('arg1',rand(5, 35)));  \/\/ was -1924.124<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['contrast']) || isset($_POST['contrast'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['contrast'])) . str_replace(' ','+',urldecode($_POST['contrast'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_CONTRAST, getpostmaybe('arg1',rand(-100, 100))); \/\/ was -90<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['brightness']) || isset($_POST['brightness'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['brightness'])) . str_replace(' ','+',urldecode($_POST['brightness'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_BRIGHTNESS, getpostmaybe('arg1',rand(-255, 255))); \/\/ was 98<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['sketchy']) || isset($_POST['sketchy']) || isset($_GET['mean_removal']) || isset($_POST['mean_removal']) || isset($_GET['mean-removal']) || isset($_POST['mean-removal']))  {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['sketchy'])) . str_replace(' ','+',urldecode($_POST['sketchy'])) . $zfilename));<br \/>\n      imagefilter($jm_php, IMG_FILTER_MEAN_REMOVAL);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['flipvertical']) || isset($_POST['flipvertical'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['flipvertical'])) . str_replace(' ','+',urldecode($_POST['flipvertical'])) . $zfilename));<br \/>\n      $jm_php=ourImageFlip($jm_php, '1'); \/\/imageflip($jm_php, IMG_FLIP_VERTICAL);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['fliphorizontal']) || isset($_POST['fliphorizontal'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['fliphorizontal'])) . str_replace(' ','+',urldecode($_POST['fliphorizontal'])) . $zfilename));<br \/>\n      $jm_php=ourImageFlip($jm_php, '2'); \/\/imageflip($jm_php, IMG_FLIP_HORIZONTAL);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['flip']) || isset($_POST['flip'])) {<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['flip'])) . str_replace(' ','+',urldecode($_POST['flip'])) . $zfilename));<br \/>\n      $jm_php=ourImageFlip($jm_php, '3'); \/\/imageflip($jm_php, IMG_FLIP_BOTH);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      imagejpeg($jm_php, $new_name);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      imagedestroy($jm_php);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    } else if (isset($_GET['rotation']) || isset($_POST['rotation'])) {<br \/>\n      \/\/file_put_contents(\"qwe.qwe1\", $zfilename);<br \/>\n      $jm_php = imagecreatefromstring(ourfile_get_contents(str_replace(' ','+',urldecode($_GET['flip'])) . str_replace(' ','+',urldecode($_POST['flip'])) . $zfilename));<br \/>\n      \/\/file_put_contents(\"qwe.qwe2\", $zfilename);<br \/>\n      if (isset($_GET['rotation'])) {<br \/>\n      $iim_php=imagerotate($jm_php, floatval(trim(str_replace('+',' ',urldecode($_GET['rotation'])))), 0);<br \/>\n      } else if (isset($_POST['rotation'])) {<br \/>\n      \/\/file_put_contents(\"qwe.qwe3\", '' . (trim(str_replace('+',' ',urldecode($_POST['rotation'])))));<br \/>\n      $iim_php=imagerotate($jm_php, floatval(trim(str_replace('+',' ',urldecode($_POST['rotation'])))), 0);<br \/>\n      \/\/file_put_contents(\"qwe.qwe4\", '' . floatval(trim(str_replace('+',' ',urldecode($_POST['rotation'])))));<br \/>\n      } else {<br \/>\n      $iim_php=imagerotate($jm_php, 0.0, 0);<br \/>\n      }<br \/>\n      \/\/file_put_contents(\"qwe.qwe5\", $zfilename);<br \/>\n      return $jm_php; \/\/$new_name = 'anewimage0.jpg';<br \/>\n      $nj=0;<br \/>\n      while (file_exists('anewimage' . $nj . '.jpg')) {<br \/>\n        $nj++;<br \/>\n        $new_name = 'anewimage' . $nj . '.jpg';<br \/>\n      }<br \/>\n      \/\/file_put_contents(\"qwe.qwe6\", $zfilename);<br \/>\n      imagejpeg($iim_php, $new_name);<br \/>\n      \/\/file_put_contents(\"qwe.qwe7\", $zfilename);<br \/>\n      $qpzm='data:image\/jpeg;base64,' . base64_encode(ourfile_get_contents($new_name));<br \/>\n      \/\/file_put_contents(\"qwe.qwe8\", $zfilename);<br \/>\n      imagedestroy($jm_php);<br \/>\n      imagedestroy($iim_php);<br \/>\n      \/\/file_put_contents(\"qwe.qwe9\", $zfilename);<br \/>\n      unlink($new_name);<br \/>\n      if (strpos($_SERVER['HTTP_REFERER'], \"\/pdfimageplustext.php\") !== false) {<br \/>\n       echo \"&lt;!doctype html&gt;&lt;html&gt;&lt;body onload=\\\" if (parent.document.getElementById('slideshow')) {   parent.document.getElementById('slideshow').value=parent.undobackup('\" . datauriit($qpzm) . \"'); parent.forcescale(); }   \\\"&gt;&lt;\/body&gt;&lt;\/html&gt;\";<br \/>\n       exit;<br \/>\n      }<br \/>\n      return $qpzm;<br \/>\n    }<br \/>\n    return imagecreatefromstring(file_get_contents($zfilename)); \/\/ 'data:image\/' . substr($ext,1) . \";base64,\" . base64_encode(ourfile_get_contents($zfilename));<br \/>\n }<br \/>\n<\/code><br \/>\n?&gt;<\/p>\n<p> &#8230; PHP code that may be familiar looking to readers of our recent <a target=_blank title='PDF Image and Text Nodes Windows Files Tutorial' href='https:\/\/www.rjmprogramming.com.au\/ITblog\/pdf-image-and-text-nodes-windows-files-tutorial'>PDF Image and Text Nodes Windows Files Tutorial<\/a> thread of blog postings.   Feel free to try <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/PHP\/Geographicals\/diff.php?one=http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php-GETME\" title='convert_wildcard.php'>the changed<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php-GETME\" title='convert_wildcard.php'>convert_wildcard.php<\/a> <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php\" title='convert_wildcard.php'>PHP web application<\/a> you can also <a href='#ific'>try below<\/a>.<\/p>\n<p><!--p>You can also see this play out at WordPress 4.1.1's <a target=_blank  href='\/\/www.rjmprogramming.com.au\/ITblog\/image-conversions-via-php-gd-filters-tutorial\/'>Image Conversions via PHP GD Filters Tutorial<\/a>.<\/p-->\n<hr>\n<p id='icphpgdpt'>Previous relevant <a target=_blank title='Image Conversions via PHP GD Primer Tutorial' href='\/\/www.rjmprogramming.com.au\/ITblog\/image-conversions-via-php-gd-primer-tutorial\/'>Image Conversions via PHP GD Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php\"><img decoding=\"async\" style=\"border: 15px solid pink;\" alt=\"Image Conversions via PHP GD Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.jpg\" title=\"Image Conversions via PHP GD Primer Tutorial\"  style=\"float:left;\" \/><\/a><p class=\"wp-caption-text\">Image Conversions via PHP GD Primer Tutorial<\/p><\/div>\n<p>Regular readers at this place will know about our admiration for <a target=_blank title='ImageMagick command line' href='http:\/\/www.imagemagick.org\/script\/command-line-tools.php'>ImageMagick<\/a> and its command line (&#8220;convert&#8221; for macOS and Linux and &#8220;magick.exe&#8221; for Windows) image conversion functionality.  Even so, ImageMagick is not capable of &#8230;<\/p>\n<p><code><br \/>\nconvert filespec*.*g* *.jpeg<br \/>\n<\/code><\/p>\n<p> &#8230; type of image conversion, in bulk, kind of processing <font size=1>(which <a target=_blank href='http:\/\/www.gimp.org' title='Gimp, or GIMP'>Gimp<\/a> offered with its sadly departed Bimp conversion software in the past)<\/font>.  But tailored PHP use of the <a target=_blank title='PHP GD' href='https:\/\/www.php.net\/manual\/en\/function.gd-info.php'>GD<\/a> (image manipulation) library, helped out by <font size=1>(good ol&#8217;)<\/font> PHP <a target=_blank title='PHP glob method information' href='http:\/\/php.net\/manual\/en\/function.glob.php'>glob<\/a>, is!<\/p>\n<p>And so, we&#8217;ve written a &#8220;proof of concept&#8221; converter that you can run at the RJM Programming domain, but we&#8217;d recommend for use with an Apache\/PHP local web server like <a target=_blank title='MAMP for Apache\/PHP\/MySql on Mac OS X local web server' href='http:\/\/www.mamp.info'>MAMP<\/a> is!  (Two in one blog posting is a record &#8230; is!)<\/p>\n<p>Get into MAMP, and you might want to download <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php_GETME\" title='convert_wildcard.php'>convert_wildcard.php<\/a> PHP source code to MAMP&#8217;s Document Root folder.  Else, <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php\" title=\"Click picture\">try it here<\/a> or below &#8230;<\/p>\n<p><iframe id=ific src=\"http:\/\/www.rjmprogramming.com.au\/convert_wildcard.php\" style=\"width:100%;height:800px;\"><\/iframe><\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d57187' onclick='var dv=document.getElementById(\"d57187\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/download\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d57187' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d57195' onclick='var dv=document.getElementById(\"d57195\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/filter\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d57195' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d57203' onclick='var dv=document.getElementById(\"d57203\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"https:\/\/www.rjmprogramming.com.au\/ITblog\/tag\/absolute\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d57203' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>So far with the progress regarding yesterday&#8217;s Image Conversions via PHP GD Filters Tutorial&#8216;s PHP image conversion web application, it has been &#8230; all relative (ie. relative image URL(s) or file specification) &#8230; but, today, quietly, we allow for &#8230; &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/image-absolute-url-conversions-via-php-gd-filters-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,14,37],"tags":[2824,52,85,112,4115,144,2684,229,3533,2683,263,2650,1750,360,367,384,418,2671,429,431,432,433,452,1550,491,1615,2440,590,3554,1658,599,652,1807,714,744,3220,830,3527,1631,932,2721,4116,997,3274,1040,1043,1053,1866,1238,1319,1345,3302],"class_list":["post-57203","post","type-post","status-publish","format-standard","hentry","category-elearning","category-event-driven-programming","category-tutorials","tag-absolute","tag-absolute-url","tag-apache","tag-attribute","tag-basename","tag-bimp","tag-brightness","tag-colourize","tag-comma","tag-contrast","tag-conversion","tag-convert","tag-document-root","tag-download","tag-dropdown","tag-emboss","tag-file","tag-file-specification","tag-file_get_contents","tag-filter","tag-filtering","tag-filters","tag-form","tag-gd","tag-gimp","tag-glob","tag-grayscale","tag-image","tag-image-url","tag-imagemagick","tag-img","tag-javascript","tag-link","tag-local-web-server","tag-mamp","tag-navigate","tag-navigation","tag-negate","tag-onchange","tag-php","tag-pixellate","tag-preg_replace","tag-programming","tag-recall","tag-regex","tag-regular-expression","tag-replace","tag-select","tag-table","tag-tutorial","tag-url","tag-wildcard"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57203"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=57203"}],"version-history":[{"count":9,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57203\/revisions"}],"predecessor-version":[{"id":57213,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/57203\/revisions\/57213"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=57203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=57203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=57203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}