You are here: Re: Combining two images « PHP Programming Language « IT news, forums, messages
Re: Combining two images

Posted by Tim Roberts on 10/02/05 09:10

alistair.calder@gmail.com wrote:

>I use a PHP script as a random image selector. I would like to add a
>small 'footer' image to the bottom of each one at runtime. I change
>the pool of images regularly so it is not something I want to do in
>photoshop, rather, I would like to find a way to do this in PHP.
>
>Is there a way to attach two images together in this way so that they
>are rendered as a single image?
>
>+--------------+
>| Main Image |
>+ -------------+
>| Footer Image |
>+--------------+

This requires that you actually modify the JPEG image itself. To do that,
you have to uncompress the JPEGs, combine the images, and recompress it to
a JPEG.

There are command line or scripting solutions for this, but I don't think
you'll want to do it on the fly in PHP.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация