I want to create a fun, fake newspaper ad and have the image on my site. I've seen tools to create images for Church billboards etc but not newspapers. Can anyone point me in the right direction? thanks Sarah
I'll check out balkanboy's suggestion. I was hoping for something with GD to make it look like a scrap of paper eg
Oh, I just want to give an example of what could be produced in the paper relating to my short url service. I no longer have a scanner... so, the inspiration was http://www.churchsigngenerator.com/index_2.php
Ah ha! here's a solution, not an ad but an article http://tools.fodey.com/generators/newspaper/snippet.asp
I made it but tweaking to get the right font... any ideas? link here Just edit the line1 line2 line3 http://www.shoemoney.com/sarak/news.php?line1=Hi%20SARAK%20FROM%20DP&line2=for%20sale%20one%20sarak%20for%20only&line3=599$%20while%20supplies%20last!!%20Call%20NOW!
I'm honored http://www.shoemoney.com/sarak/news.php?line1=66%20Bambina,%20Red&line2=tidy%20body,%20runs%20well,%201%20owner&line3=$599%205nz.com/4de1d9 thanks!
here is the source... I really didnt have much time to work on it <?php $line1 = $_REQUEST['line1']; $line2 = $_REQUEST['line2']; $line3 = $_REQUEST['line3']; // Set the content-type header("Content-type: image/jpeg"); // Create the image $im = @imagecreatefromjpeg ("news.jpg") or die("shit"); $black = imagecolorallocate($im, 40, 40, 40); // The text to draw // Replace path by your own font path $font = '/home/websites/shoemoney/html/sarak/arial.ttf'; // Add some shadow to the text // Add the text imagettftext($im, 16, 0, 110, 250, $black, $font, $line1); imagettftext($im, 12, 0, 100, 265, $black, $font, $line2); imagettftext($im, 12, 0, 80, 278, $black, $font, $line3); // Using imagejpeg() results in clearer text compared with imagejpeg() imagejpeg($im); imagedestroy($im); ?> PHP:
or better yet here is the full source with image and font file Here I was more trying to help you get in the right direction with a working example. Let me know if you have any questions