¡@

Home 

php Programming Glossary: smallestside

PHP crop image to fix width and height without losing dimension ratio

http://stackoverflow.com/questions/3255773/php-crop-image-to-fix-width-and-height-without-losing-dimension-ratio

to use for thumbnail if width height y 0 x width height 2 smallestSide height else x 0 y height width 2 smallestSide width copying.. height 2 smallestSide height else x 0 y height width 2 smallestSide width copying the part into thumbnail thumbSize 100 thumb imagecreatetruecolor.. thumb myImage 0 0 x y thumbSize thumbSize smallestSide smallestSide final output header 'Content type image jpeg' imagejpeg..