niomaward.blogg.se

Tinify api
Tinify api




Uses up to 90 additional bytes, plus the length of the copyright data.Ĭreation : Preserves any creation date or time. This includes the EXIF copyright tag (JPEG), the XMP rights tag (PNG) as well as a Photoshop copyright flag or URL. No metadata will be added if the requested metadata is not present in the uploaded image.Ĭopyright : Preserves any copyright information. You can provide the following options to preserve specific metadata. Path: '/home/bernard-ng/dev/projects/tinify-php/data/test-compressed.png' However, in the background the image will be created again with the additional metadata. Preserving metadata will not count as an extra compression. Preserving metadata adds to the compressed file size, so you should only preserve metadata that is important to keep. Preserving copyright information, the GPS location and the creation date are currently supported. You can request that specific metadata is copied from the uploaded image to the compressed version. Scaling up is prevented in order to protect the quality of your images. If the target dimensions are larger than the original dimensions, the image will not be scaled up.

tinify api

If an image is detected with a free standing object it will add more background space where necessary or crop the unimportant parts. The image is scaled down to the width and height you provide. Thumb : A more advanced implementation of cover that also detects cut out images with plain backgrounds. An intelligent algorithm determines the most important areas of your image. Which parts of the image are cropped away is determined automatically. You must provide both a width and a height. The scaled image will not exceed either of these dimensions.Ĭover Scales the image proportionally and crops it if necessary so that the result has exactly the given dimensions. The scaled image will have exactly the provided width or heightįit : Scales the image down proportionally so that it fits within the given dimensions. You must provide either a target width or a target height, but not both. Scale : Scales the image down proportionally. The method describes the way your image will be resized.

tinify api

Source: $tinify-> fromFile( '/home/bernard-ng/Pictures/test.png'),






Tinify api