IMAGICK.WHITETHRESHOLDIMAGE(3) 1 IMAGICK.WHITETHRESHOLDIMAGE(3)Imagick::whiteThresholdImage - Force all pixels above the threshold into white
SYNOPSIS
bool Imagick::whiteThresholdImage (mixed $threshold)
DESCRIPTION
Is like Imagick::ThresholdImage() but force all pixels above the threshold into white while leaving all pixels below the threshold
unchanged.
PARAMETERS
o $threshold
-
RETURN VALUES
Returns TRUE on success.
CHANGELOG
+--------+---------------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+---------------------------------------------------+
| 2.1.0 | |
| | |
| | Now allows a string representing the color as a |
| | parameter. Previous versions allow only an Imag- |
| | ickPixel object. |
| | |
+--------+---------------------------------------------------+
EXAMPLES
Example #1
Imagick.whiteThresholdImage(3)
<?php
function whiteThresholdImage($imagePath, $color) {
$imagick = new Imagick(realpath($imagePath));
$imagick->whiteThresholdImage($color);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>
PHP Documentation Group IMAGICK.WHITETHRESHOLDIMAGE(3)
Check Out this Related Man Page
IMAGICK.PINGIMAGEFILE(3) 1 IMAGICK.PINGIMAGEFILE(3)Imagick::pingImageFile - Get basic image attributes in a lightweight manner
SYNOPSIS
bool Imagick::pingImageFile (resource $filehandle, [string $fileName])
DESCRIPTION
This method can be used to query image width, height, size, and format without reading the whole image to memory. This method is available
if Imagick has been compiled against ImageMagick version 6.2.9 or newer.
PARAMETERS
o $filehandle
- An open filehandle to the image.
o $fileName
- Optional filename for this image.
RETURN VALUES
Returns TRUE on success.
EXAMPLES
Example #1
Using Imagick.pingImageFile(3)
Opening a remote location
<?php
/* fopen a remote location */
$fp = fopen("http://example.com/test.jpg");
/* create new imagick object */
$im = new Imagick();
/* pass the handle to imagick */
$im->pingImageFile($fp);
?>
SEE ALSO Imagick.pingImage(3), Imagick.pingImageBlob(3), Imagick.readImage(3), Imagick.readImageBlob(3), Imagick.readImageFile(3).
PHP Documentation Group IMAGICK.PINGIMAGEFILE(3)
Hi,
I am trying to make a script in which the user is notified once the disk space of the environment increases a particular threshold.
I have made a script for it but I am facing an error while executing it.
Could any one here guide me further??
Script
#!/bin/sh
warninglimit=350000... (22 Replies)
Good morning,
Can someone help to color a figure in columns if its exceeding a threshold using shell script .
ex. I have file contains 5 columns showing a value in % I need to show the value in red if it exceed 90 %
Appreciate your help (3 Replies)
Hi there,
Root filesystem is above threshold, I have search and cleared unwanted files which are filling up space. But the root fs is still above threshold.
I don't know about veritas volume management. Can anyone show me how to solve this. Du shows /proc is occupying a lot of space. Most of the... (2 Replies)
I'm working on installing ImageMagick and Imagick and could use some help. I have XAMPP installed on OS 10.5.8. I managed to get ImageMagick installed using macports. I then created a .bash_profile and added this path to it:
export PATH=$PATH:/Volumes/bootay/Applications/XAMPP/xamppfiles/bin/... (4 Replies)
I need to design a script which will run evry hour and work in such a way that i need to send an alert mail if some value exceeds the threshold value. But, if the value is within the threshold value then it will just send once report mail. (1 Reply)
HI Guys
Below is my file structure and now I want if % is equal and above 95% then I will get the mail with the name of that filesystem and threshold value.
Is someone help me ?
55G 33G 22G 61% /mnt/projects/stp2int4_web_runtime
16G 14G 1.7G 90%... (2 Replies)
Hello Everyone,
I am new to this forum and also unix/linux. Our application today threw an alert whcih read as
"The users active count on host has crossed the threshold limit of 50
and is standing at 65."
This was although cleared when I restarted tomcat. But I am not sure why this count... (0 Replies)