I've an image that is 300x225 pixels.
I've to send this image to mobile phones using the mms. For this the best
result is given using 120x160 pixels.
So I may generate a 120 pixels large image, but I've a lot of unused space
under the image, as scaling proportionally, my image is then 120x90.
how to enlarge the image in order to get the picture 120x90 and then a white
stripe where I may write the website (or put the logo).
The resulting image should be 120x160, 120x90 used by the picture, 120x70 a
white stripe where I may put the logo or a text.
Thanks
Bob 2 1957
Bob Bedford wrote: I've an image that is 300x225 pixels. I've to send this image to mobile phones using the mms. For this the best result is given using 120x160 pixels. So I may generate a 120 pixels large image, but I've a lot of unused space under the image, as scaling proportionally, my image is then 120x90.
how to enlarge the image in order to get the picture 120x90 and then a white stripe where I may write the website (or put the logo).
1. Create a blank 120x160 image with imagecreate().
2. Open the existing 120x90 image with imagecreatefrom X().
3. Copy the existing 120x90 image opened in Step 2 into
the blank image created in Step 1 with imagecopy().
4. Output the newly generated 120x160 image with imageX().
X, of course, stands for the image type (gif, jpeg, png, etc.)
Cheers,
NC
Bob Bedford wrote: I've an image that is 300x225 pixels. I've to send this image to mobile phones using the mms. For this the best result is given using 120x160 pixels. So I may generate a 120 pixels large image, but I've a lot of unused space under the image, as scaling proportionally, my image is then 120x90.
how to enlarge the image in order to get the picture 120x90 and then a white stripe where I may write the website (or put the logo).
The resulting image should be 120x160, 120x90 used by the picture, 120x70 a white stripe where I may put the logo or a text.
Thanks
Bob
Hi Bob,
Start reading here: http://nl2.php.net/manual/en/ref.image.php
It boils down to:
1) Make sure you have GD2-support on your PHP-machine. Check via phpinfo()
2) Open the image (from file eg) with functions like imagecreatefrom gif or
imagecreatefrom jpg, etc. You can look them up, I don't know your format.
3) Resample your image (resampling is better than resizing) and copy it to
another slightly larger image you first create.
Look at functions like imagecopyresamp led()
4) write your text under it.
Good luck.
Regards,
Erwin Moller This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kevin McDaniel |
last post by:
I was wondering if anyone has heard of problems with the Export
utility writing dump files on stripe-sets. I'm not sure if the
stripe-set is configured correctly or not, but everytime I place my
dump file on this set, I can't import it. I always get
errors/crashes. I appreciate your help.
Cheers.
Kevin
|
by: Jordan Peterson |
last post by:
I'm trying to put a vertical blue stripe with a black border on this
page that will remain colored even if the page is scrolled in the UA.
http://maba.org/new/homeproducts/
As you can see, the stripe is there, but Gecko only draws it for the
initial viewport and chops it off if one scrolls down. MSIE stops
drawing the background color at the end of the last link on the left side.
I've messed around with the stylesheet to no end, and...
|
by: seajays |
last post by:
OK, I've managed to get just about everything working in CSS and XHTML,
but there is one last peice of the jigsaw.
http://www.seajays.org.uk/2know_dev/
At the moment on the site, I have a gray striped background behind the
left hand menu. This was achieved using a body background image.
It looks OK, until you change the size of the text in the browser (i.e.
larger, smaller etc), and then the menu items start to float out past
|
by: xixi |
last post by:
hi, i would like to choose dms type tablespace for the user data , the
server is db2 udb v8.1 on windows 64 bit, the volume created is use
stripe type, so it will cross the data on two different disk with same
logical volume , is this help for performance, will this cause problem
if we need to restore in different server without multiple disk ?
|
by: Erik Hendrix |
last post by:
Hi,
I have some questions related to stripe sets that I'm hoping someone here
can answer.
1) What happens to stripe sets when doing a database restore? Do they stay
as is?
2) What happens to stripe sets when doing a redirect database restore? Will
a new tablespace map be created by this and thus override the existing
| |
by: p175 |
last post by:
Hi folks,
I've tried reading just about every post I can on raid stiping / extent
size etc and I'm just getting myself more confused than ever. Here's my
situation.
On a Windows Server 2000 standard edition system with only 1gb ram
using UDB 8.2.3 Enterprise, I have an existing database that uses two
raid arrays striped with 8kb. Presently the tablespaces have a
default extent of 24, default prefetch of 48 .
|
by: Frank |
last post by:
I'm trying to access my database of records via a mag stripe reader.
I've created a querry that prompts me to enter a number. I thought that
I might just swipe the mag stripe and the appropriate record would come
up.
No luck. Do I need to purchase software to do this?
|
by: Tom Warren |
last post by:
I've ordered a mag stripe reader for Driver's Licenses but I want to
get a jump on raw data parsing. I have the
stdAAMVADLIDCardSpecs_092003.pdf which defines the structure of the
raw data, but I would like to double check before I start writing
parsing routines.
Does anyone have raw AAMVA data? The data doesn't have to be real but
the structure has to be correct.
Thanks
|
by: Mark A |
last post by:
I have an OLTP database that has a tablespace that will start out at about 1
TB, but may grow to 75 TB's in size over the next 5 years. When I add new
containers (on a new mount point), I want to use the BEGIN NEW STRIPE SET
command to avoid rebalancing.
Anyone know the maximum number of STRIPE SET's that can be created for a
tablespace.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |