Developer API

Automate your JPEG and PNG compression workflow

AG亚游集团,  然后往往发生的是:女人忽然有一天在手机里发现了男人和另外一个女人的暧昧短信。

  芷宁:刘总,我看过一组统计数据,说目前中国国内的手机产量已经占全球产能的一半了,但是国内的增速放缓,库存量增加,那么在这种情况下大显还要强力扩大生产规模,您觉得会不会有些冒险?什么项目前景好  随着第十届中国航展的开幕,歼31、运20等一批大众热议的机型依次揭开了神秘的面纱,而他们精彩绝伦的飞行表演也掀起了本届航展的高潮,虽然他们分属、运输机等不同序列,但统一的“中国血脉”让我们欣喜的看到了中国航空工业崛起的轨迹。

Hook up your server to optimize all your JPEG and PNG images on the fly. Join over 50.000 companies and developers around the world who are using the API. Enter your name and email address below to retrieve your key and get started.

Getting started

Once you retrieve your key, you can immediately start shrinking images. Official client libraries are available for Ruby, PHP, Node.js, Python, Java and .NET. You can also use the WordPress plugin to compress your JPEG and PNG images. And in case you own a Magento store you can simply install the extensions for Magento 1 CE, Magento 1 EE or Magento 2 CE to optimize your product images.

The community has also created a large number of third-party add-ons using the Developer API.

You can also create your own integration with any HTTP(S) client. The server will compress your image and respond with a URL where you can grab the result.

curl --user api:YOUR_API_KEY \
      --data-binary @unoptimized.png -i /apiaff4tinifyaff4com/shrink

Features

Same API for JPEG & PNG images

The API compresses JPEG and PNG images. You only have to upload your source image and download the result. Everything else happens automatically.

Upload directly or provide a URL to the image

You can either upload images directly or specify a URL to the image you want to compress.

Preserve metadata

You can choose to preserve copyright information, the GPS location and the creation date in the compressed JPEG images. For PNG images the copyright information can be preserved.

Amazon S3 and Google Cloud Storage (new)

You can instruct the API to save the optimized images directly in your Amazon S3 or Google Cloud Storage buckets. When doing this you may also set custom Cache-Control and Expires headers.

Perfect image resizing

The API can resize your images as well as optimising them. You only have to upload the original once and then generate the image sizes you need. Resizing includes correct gamma scaling, bicubic transparency edge correction and natural image sharpening.

Area of interest detection

Take advantage of smart cropping to create thumbnails with different aspect ratios. The API will resize your images and crop away the parts that are visually the least interesting.

Area of interest detection explained

Original image
upload your original image ...
Arrow
Area of interest detection
... the area of interest is detected ...
Arrow
Image smart resized with API
... image is scaled and cropped

Cut out image detection (new)

We've added a new algorithm to detect free standing objects on plain backgrounds. The API will add background space or remove superfluous areas when the aspect ratio is changed. This way the object in your image will remain free-standing and does not get cut-off at the edges when resizing.

Resizing of cut out images explained

Original cut out image
upload your original image ...
Arrow
API object detection
... the free standing object is detected ...
Arrow
Image with new aspect ratio
... new image size is applied

Pricing

You only pay for what you use. The first 500 compressions each month are free. You will only be billed if you compress more than 500 images.

There are no subscription costs, no file size limits and no minimum fees. Only successful compressions will be charged.

Images uploaded with APIPrice per unit

  • First 500 images per monthfree
  • Next 9?500 image compressions$0.009 per image
  • After 10?000 image compressions$0.002 per image
… or simply calculate your costs

Price calculator

2 000

$13.50total price

When you reach your compression limit the API will return the error message: Your monthly limit has been exceeded. Upgrade your account by entering your payment details on your WordPress & API AG亚游集团dashboard.

If you entered your payment details and want to disable using paid compressions, you can limit your account to free compressions at any time on your account page.

Corporate subscriptions

For corporations and large businesses we offer special subscription plans. They come with fixed fees, fair usage policy, priority support and optional yearly bank payment. Contact us at AG亚游集团support@AG亚游集团 www.meeetang.com.

Documentation

For documentation and code examples in different programming languages you can explore the API Reference.

Try TinyPNG with a new browser

TinyPNG is created for modern browsers with HTML5 & CSS3 support. We have not tried it out in other browsers. The site may work, or it may not. If you see this message you may want to try a different browser!

台媒关注解放军双战区军机绕台:意在整合对台部署 美议员去信世卫大会为台“撑腰” 蔡英文发推自嗨 河南孟津一化工厂发生气体泄漏 滚滚黄烟弥漫上空 印度试射舰载弹道导弹:可携核弹头加强核威慑 机构谨慎乐观A股三领域或受关注 特朗普忙发推 第一夫人将召集科技巨头探讨网络骚扰 巴托丽谈复出心路历程:经历过生死 更懂得网球 年度最佳助攻奖揭晓!詹姆斯82分神级装X当选 滴滴发布整改措施 顺风车告别社交 多米尼加2-3韩国 主帅:不满意 表现不如昨天 外媒头条:部分亚马逊商家正欺骗消费者数千美元运费 希腊遇近十年来最严重火灾 已造成超60人死亡
阿卡普尔科赛波特罗三盘过关 携兹维列夫进八强 日本央行:提高服务业生产率对彻底摆脱通缩很重要 进球gif-太快了!阿奇姆彭狂奔半场KO颜骏凌 日媒:朝探索改革开放 金正恩亲信到中关村学经验 缅甸洪水致10人死亡 5省10万多人被迫逃离家园 8月1日起南京“购房落户”政策将彻底废止 台“救国团”资产被冻结:被认定为国民党附随组织 目睹中国技术发展 韩CEO说了中国男足的专属名言 兴业投资:美联储纪要偏鹰 美元过山车实现四连涨 张业遂:全国人大会议将首次举行宪法宣誓活动 沈兴全任中北大学校长 刘有智不再担任(图) 日外相访韩求带话:请务必在朝韩首脑会提绑架问题
俄称特朗普放宽武器出口限制 欲将中俄挤出军火市场 交接班一年后 两任温州书记在杭州搭档 中兴通讯:公司已恢复主要经营活动 台湾学者否认曾扬言炸毁三峡大坝:我说的是不可以炸 北京女篮还差1胜就能夺冠 主帅:还没到庆祝时刻 35+14+6+3+2詹姆斯现役只能排第6!大腿拍折了 U17男篮世青赛:中国与美国塞尔维亚同组 美国会报告提中兴华为联想 欲扣“商业间谍”帽子 未来是他们的?最强双星一成就碾压昔日王炸 白手起家怎样创业 加盟什么店最赚钱 在家赚钱的十种方法 什么项目前景好 AG亚游集团