Dear all,
I've been working with AIX for, um, 15 years now and I have read all I can about the above, but I am stuck. Everything seems to point to using sendmail on the command line to embed a uuencoded attatchment will not work.
Using something like "(cat plain.txt;uuencode attach.file... (4 Replies)
Hi,
I got the following script from Ygor on this site:
#!/usr/bin/ksh
export MAILTO="email_address"
export CONTENT="/export/home/aisdba/email_body.html"
export SUBJECT="subject of email"
(
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo... (9 Replies)
Hello!
I'm desperately trying to write a makefile that converts and scales jpeg files to png files in subdirectories
I want to use netpbm, so I just need the commands:
anytopnm
pnmscale
pnmtopng
For various reasons i want to use a makefile. This is the first time i use the make tool... (1 Reply)
i was able to make a connection to X server and get a screen shot using XGetImage, now, im unable to save this XImage to any good format like PNG, i found a code that saves it to bitmap, but the resulted bitmap file is massive, is there anyway i can save this XImage to PNG directly?
thanks; (7 Replies)
Hi guys. I will be frequently needing to convert .jpg files to 183x183 .png thumbnails. I can't quite seem to wrap my head around how to make a for loop to do this.
With the help of my friend (who may have mislead me, I'm quite confused) I've got this.
This is bash
the command is: pngify... (3 Replies)
Hi.
I am using a script on HP-UX to send emails that include a Pdf attachment to clients. The scipt makes use of sendmail.
The scripts works for everything except gmail. When I go on gmail via my Web Browser, I can see the message with the attachment, but if I try to view or download the... (2 Replies)
Hi All,
I have a problem again with sendmail content type . I am trying to attach the gz file to the html email but couldnt figure out even after extensive google.
Here is my code.
(
echo "From: $FROM"
echo "To: $MAILTO"
echo... (3 Replies)
Need assistance in using the below script and having multiple png file attachments in the same script . Your inputs are appreciated. I dont have uuencode , I use either mailx, sendmail, mpack .
( echo "to: samplemail@somewhere.com"
echo "from: samplemail@elsewhere.com"
echo "subject:... (2 Replies)
Hi All,
Not been around in a while. However I have been all over tinternet (google) for days looking for a solution.
Where I work has decided to use Sendmail on our Linux and Unix estate for sending emails via scripts. So I am hoping to eventually get a working solution for Sendmail and not... (3 Replies)
Discussion started by: dakelly
3 Replies
LEARN ABOUT PHP
imageflip
IMAGEFLIP(3) 1 IMAGEFLIP(3)imageflip - Flips an image using a given modeSYNOPSIS
bool imageflip (resource $image, int $mode)
DESCRIPTION
Flips the $image image using the given $mode.
PARAMETERS
o $
image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3).
o $mode
- Flip mode, this can be one of the IMG_FLIP_* constants:
+--------------------+---------------------------------------------------+
| Constant | |
| | |
| | Meaning |
| | |
+--------------------+---------------------------------------------------+
| | |
|IMG_FLIP_HORIZONTAL | |
| | |
| | Flips the image horizontally. |
| | |
| | |
| IMG_FLIP_VERTICAL | |
| | |
| | Flips the image vertically. |
| | |
| | |
| IMG_FLIP_BOTH | |
| | |
| | Flips the image both horizontally and verti- |
| | cally. |
| | |
+--------------------+---------------------------------------------------+
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
Flips an image vertically
This example uses the IMG_FLIP_VERTICAL constant.
<?php
// File
$filename = 'phplogo.png';
// Content type
header('Content-type: image/png');
// Load
$im = imagecreatefrompng($filename);
// Flip it vertically
imageflip($im, IMG_FLIP_VERTICAL);
// Output
imagejpeg($im);
imagedestroy($im);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example: Vertically flipped image
Example #2
Flips the image horizontally
This example uses the IMG_FLIP_HORIZONTAL constant.
<?php
// File
$filename = 'phplogo.png';
// Content type
header('Content-type: image/png');
// Load
$im = imagecreatefrompng($filename);
// Flip it horizontally
imageflip($im, IMG_FLIP_HORIZONTAL);
// Output
imagejpeg($im);
imagedestroy($im);
?>
The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example: Horizontally flipped image
NOTES
Note
This function is only available if PHP is compiled with the bundled version of the GD library.
PHP Documentation Group IMAGEFLIP(3)