| An example of an online rich internet application using flash, xml, and php (with gd2). In this example I've only included 1 category with 4 backgrounds. Currently only outputs RGB jpegs (upside being they are easily previewed by non technical end users whereas CMYK jpegs require viewing in Photoshop or similar) as I haven't found an accurate way (yet) to convert to CMYK on the server without major colour shift (although as a precautionary measure the RGB backgrounds have been preprocessed to ensure they don't produce any out of gamut CMYK colours when converted via a Photoshop droplet on the desktop). I've finally cracked the problem of embedding the correct print dpi (300) into the card.jpg - whereas the output pixel dimension has always been correct, GD output defaults to screen not print dpi. A google frenzy didn't show up anything except other people struggling with the same problem, and the official jpeg documentation didn't appear to have any simple pointers either. However a quick investigation with some Irfanview prepared test jpegs (photoshop prepped ones having loads of bollocks metadata to confuse the issue), in comparison with GD pics via a hex editor showed some likely bytes to hack, and after patching byte D to 01 (some sort of flag?) and putting 2 of hex 012C (decimal 300) next, we have 300 dpi output. The php script now patches the card.jpg after creation. The image output code should force download, but may embed the image in a new page depending on your systems configuration, in which case right click on it and 'save picture as..' Any queries? multimedia@hotmail.co.uk |