Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #$form = htmlspecialchars($_GET["form"]);
- $uniqueid = time() . mt_rand();
- exec('/usr/bin/convert -flatten -colorspace RGB -density 300 -quality 80 /var/www/html/toconvert.pdf /var/www/html/convertedimages/toconvert.png 2>&1', $output1);
- echo '<img alt="' . $uniqueid . '" style="display: none;" src="barcode.php?text=' . $uniqueid . '&print=true&size=100" />';
- exec ('convert /var/www/html/generatedbarcodes/' . $uniqueid . '.png -resize 300x300 /var/www/html/generatedbarcodes/' . $uniqueid . '_resize.png 2>&1', $output2);
- exec('/usr/bin/convert /var/www/html/convertedimages/toconvert.png /var/www/html/generatedbarcodes/' . $uniqueid . '_resize.png -gravity NorthEast -composite /var/www/html/combined/' . $uniqueid . '.png 2>&1', $output3);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement