SHARE
TWEET

base64-kuva

Turpo-Urpo May 31st, 2020 706 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. echo '<!DOCTYPE html>';
  3. echo '<html>';
  4. echo '<body>';
  5. $imagick = new Imagick();
  6. $imageData = 'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAA7VJREFUWIXtlltoXEUYx39z5pyTvSSbrWtjNVhN7a4ENG2CJtBYQsSCii9F8aGI4IOkloogKIgWEaHFkBcpGhQE6WMffRBEfNGIYBqRCqWliYopabbbzWW713OZ8WFN3YS9nQT0pX / 44JyZ + c / 3m5kzcwbu6H + W2GkHexLxV4481vei63r + RpkhhFE / mxDSDuvz386dqrju3I4BDqb2Tp5986W3lOpqvyetyHkFXvtw + sS1zOq03G5yIUTvmeMvfBaV0Yjyyii30mY4hDCIR + X + 7y / Of2luF8AwxG7heaZfzAX2KgG4rgQitQCWEOIIoNvpw7bMA1I5tq4UAi + kRiB8TwJhE8C27RP9 / f2fdHV1YRibvx + tqzxCVLMopZDSwCkXiBgeuD6BJUDimAKiphBi // j4 + EepVArLsjYl3ki6VVIaLC8tQuEGTrEIDdo1yY9duRVGCGlKKWNDQ0NWLBbblLAWYOuzaZqUi + s4mTm87I3ge0mDUGFLCAxTKbUcj8dLiUSiY1ObpjMgWV / NIK9XIJ8LOgGgoeSpvNZUTKXU0tTU1MmJiYkPYrFYZ7sAhWLJDoWMuBlp2KypZEE5gF9r7RRCRNv0 + 6GQPXruucS5PYWl2HYAZnKdC + / MFJ6s3YZ5rXW + 5l3QZEs6FXfJU9qNSqD + wdtQhpRUfO1qrUsBrf / KV2r + 07ncr3ft7SVkQchuL8ISSvcm + eK34jfA + raPYsD9a82d7QrLY48n / LCJwjRoHBJMQO3q4d3vMrMXrrvHgfxOADSQ + 2mx / Mdg6p5nB8IFS4kmAALivQ / w / sz6wvlLxVeBq4DeCQCArzQLM / N5e / jhxKE + q2xIUU12O4zqyGWkk8m58vLZ2fzzwC + AAtgpAIBX9Jn96krp5mCy56mD3Y7haYVhgGGAFBDtuY / Jiyp95sf1l4ELgLNhDgrQaMM5juLy15cLq / f33n340VjFkihMAV50F6dm9bXJH1aOAj8Dle2NsznAhiIdkmPTT3eX9BsdOnd6WJ88IP8UcIjqSvwnsqXgmbeHw7 + // ghXgAcJfFLUaGRk5HQ0Gn1iS7EAwmNjYx8PDAy8V893eHT08 + 5Y7Gir / luSpVKpEdu2d28p1oAaHBwcSyaTI / V8ffv2PWRI2fJy0xIgm81q369 / 6Uin02plZUXVq7tZ9bX8S7QDgOd5jQBYW1sL7KtVyy8zm83SaAYymYzI5 / N1R9nMFwggnU4veJ53q06VXlxcvOR5XjqgL7AsGi + V / U99UN8d3dbf1QicZzj9nmMAAAAASUVORK5CYII =';
  7. $src = 'data: '.'image/png'.';base64,'.$imageData;
  8. echo '<img src="'.$src.'">';
  9. $imagick->readImage($src);
  10. $imagick->rotateImage(new ImagickPixel('none'), 90);
  11. $imagick->writeImage('rotated.png');
  12. $imagick->clear();
  13. $imagick->destroy();
  14. echo '<img src="rotated.png">';
  15. echo '</body>';
  16. echo '</html>';
  17. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top