12/29/2023 0 Comments Simpleimage php uploadadded $quality property for specifying default image quality value.quality of output now in percents, which is the same for any image type.added crop_center method for cropping image of certain size in the center of image (thanks to Cezar Luiz fork).added method output_base64 for getting image in form of string as data: URL (thanks to Fernando Cunha fork).added method fill for filling image with specified color (thanks to strip fork).constructor extended with possibility to create empty image without source file (thanks to strip fork).load method hidden, use constructor instead.: Version 2.1 (by Nazar Mokrynskyi), a lot of refactoring and new features Differences from Version 2 smart_crop and crop_center methods removed, simplified adaptive_resize added instead, new method is compatible with old, but simpler.: Version 2.2 (by Nazar Mokrynskyi) Differences from Version 2.1 without saving to file) $img-> flip( 'x')-> output() Change Log : Version 2.3 (by Nazar Mokrynskyi) Differences from Version 2.1 Flip the image and output it directly to the browser (i.e. Get the current orientation (returns 'portrait', 'landscape', or 'square') $orientation = $img-> get_orientation() ![]() Get the current height $height = $img-> get_height() Get the current width $width = $img-> get_width() Get info about the original image (before any changes were made) // // Returns: // // array( // width => 320, // height => 200, // orientation =>, // exif => array(.), // mime =>, // format => // ) $info = $img-> get_original_info() The image you're working with or output the image directly to the browser: The following methods are not chainable, because they return information about
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |