# Help with imagecreatetruecolor()

**URL:** <https://forum.kirupa.com/t/help-with-imagecreatetruecolor/256429>\
**Category:** programming\
**Created:** [April 2, 2008, 10:29pm UTC](https://forum.kirupa.com/t/help-with-imagecreatetruecolor/256429 "2008-04-02T22:29:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SpawnOfJon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/spawnofjon/32/3308_2.png) [@SpawnOfJon](https://forum.kirupa.com/u/SpawnOfJon)\
**Post date:** [April 2, 2008, 10:29pm UTC](https://forum.kirupa.com/t/help-with-imagecreatetruecolor/256429/1 "2008-04-02T22:29:38Z")

</div>

I’m working on a flash project ([joncazier.com/avatarnator](http://joncazier.com/avatarnator)) right now that involved saving out bitmap data from a flash file to a PHP script that converts it into an image using imagecreatetruecolor. It works mostly ok. But, when I right click on the image, it saves the php file rather than a jpg.

To see this, go to the link I provided above, click save, wait a minute (sorry no loading bar yet) then a new tab will open up with the image.

You can see the PHP script I used [here](http://www.sephiroth.it/tutorials/flashPHP/print_screen/page002.php).

I would like that ability to at least right click and save a jpg image or, even better, a prompt to download the image.

Thanks for the help!
