php Programming Glossary: imagesy
Efficient JPEG Image Resizing in PHP http://stackoverflow.com/questions/12661/efficient-jpeg-image-resizing-in-php imagecreatefromjpeg sourcefile width imagesx img height imagesy img if width height newwidth thumbwidth divisor width thumbwidth..
PHP - Replace colour within image http://stackoverflow.com/questions/1548534/php-replace-colour-within-image 'Problem with source' out ImageCreateTrueColor imagesx src imagesy src or die 'Problem In Creating image' scan image pixels for.. image' scan image pixels for x 0 x imagesx src x for y 0 y imagesy src y src_pix imagecolorat src x y src_pix_array rgb_to_array..
Crop whitespace from image in PHP http://stackoverflow.com/questions/1669683/crop-whitespace-from-image-in-php the borders b_top 0 b_btm 0 b_lft 0 b_rt 0 top for b_top imagesy img b_top for x 0 x imagesx img x if imagecolorat img x b_top.. 0xFFFFFF break 2 out of the 'top' loop bottom for b_btm imagesy img b_btm for x 0 x imagesx img x if imagecolorat img x imagesy.. img b_btm for x 0 x imagesx img x if imagecolorat img x imagesy img b_btm 1 0xFFFFFF break 2 out of the 'bottom' loop left..
Get image color http://stackoverflow.com/questions/1746530/get-image-color imagecreatefromjpeg filename width imagesx image height imagesy image pixel imagecreatetruecolor 1 1 imagecopyresampled pixel.. imagecreatefromjpeg filename width imagesx image height imagesy image for y 0 y height y rgb imagecolorat image 0 y color imagecolorsforindex..
Crop image in PHP http://stackoverflow.com/questions/1855996/crop-image-in-php 200 thumb_height 150 width imagesx image height imagesy image original_aspect width height thumb_aspect thumb_width..
Add 'Watermark' to images with php http://stackoverflow.com/questions/2235152/add-watermark-to-images-with-php image marge_right 10 marge_bottom 10 sx imagesx stamp sy imagesy stamp Copy the stamp image onto our photo using the margin offsets.. of the stamp. imagecopy im stamp imagesx im sx marge_right imagesy im sy marge_bottom 0 0 imagesx stamp imagesy stamp Output and.. marge_right imagesy im sy marge_bottom 0 0 imagesx stamp imagesy stamp Output and free memory header 'Content type image png'..
Super fast getimagesize in php http://stackoverflow.com/questions/4635936/super-fast-getimagesize-in-php url im imagecreatefromstring raw width imagesx im height imagesy im stop round microtime true start 5 echo width. x . height...
PNG Transparency Resize with SimpleImage.php Class http://stackoverflow.com/questions/6382448/png-transparency-resize-with-simpleimage-php-class return imagesx this image function getHeight return imagesy this image function resizeToHeight height ratio height this..
|