PageSourceSearch

https://tinyjpg.com/developers

html tinyjpg.com collected 2026-10-01 08:26:48 UTC 18,339 bytes, 3 lines download raw bytes

1<!DOCTYPE html><html lang=en><head><link rel=preload href=/scripts/main-216f866094e34d2a2e0e23ca0abc8d09.js as=script><link rel=preload href=/styles/main-35cfada0b9b6ef94f5a01af15c94cbd1.css as=style><link rel=preload href=/images/sprite.svg as=image><link rel=preload href=/styles/fonts/opensans-regular.woff as=font type=font/woff crossorigin><link rel=preload href=/styles/fonts/opensans-semibold.woff as=font type=font/woff crossorigin><title>TinyPNG – Optimize AVIF, WebP, JPEG and PNG Images with TinyPNG API</title><meta name=description content="Automate your AVIF, WebP, JPEG and PNG compression workflow. Compress, resize and convert images seamlessly with TinyPNG's API."><meta name=viewport content="initial-scale=1"><meta name=msapplication-config content=none><link rel=stylesheet href=/styles/main-35cfada0b9b6ef94f5a01af15c94cbd1.css><link rel="shortcut icon" href=/images/favicon.ico><link rel=apple-touch-icon href=/images/apple-touch-icon.png>
1<script id=Cookiebot src=https://consent.cookiebot.com/uc.js data-cbid=c225f1cf-22b5-408d-9017-6dfa24e48b01 data-blockingmode=none type=text/javascript async></script>
1<script>!function(e,a){function t(e){var t=a.createElement("script");t.src=e,t.async=!0,a.head.appendChild(t)}e.File&&e.FileList&&e.FileReader&&e.FormData&&e.localStorage&&e.DOMStringMap&&(t("/scripts/main-216f866094e34d2a2e0e23ca0abc8d09.js"),a.documentElement.classList.add("supported")),t("//js.stripe.com/v3/");const n="dataLayer";function i(){e[n].push(arguments)}e[n]=e[n]||[],i("consent","default",{ad_personalization:"denied",ad_storage:"denied",ad_user_data:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted",wait_for_update:500}),i("set","ads_data_redaction",!0),i("set","url_passthrough",!1);try{var s=JSON.parse(localStorage.getItem("tinify-session"));e[n]=e[n]||[],s=s||{};e[n].push({up:(e=>{e=e.products||[];return{has_cdn:e.includes("cdn"),has_web:e.some(e=>["pro","ultra","web"].includes(e)),has_api:e.includes("api"),web_tier:e.find(e=>["pro","ultra","web"].includes(e))||"free"}})(s)})}catch(e){console.error(e)}var s={gtmId:"GTM-5VQB4MZH"},r=e.location.hostname,r=(-1===["tinify.cn","tinypng.com","tinyjpg.com"].indexOf(r)&&(r.match(/acceptance/)?(s.auth="9mMyYMpMjMYKivOSbpYr3w",s.preview="env-7"):(s.auth="2U2kq04s5nTZgC0djaDY-Q",s.preview="env-6")),s.auth?"&gtm_auth="+s.auth:""),r="https://www.googletagmanager.com/gtm.js?id="+s.gtmId+r+(s.preview?"&gtm_preview="+s.preview+"&gtm_cookies_win=x":"");e[n].push({"gtm.start":(new Date).getTime(),event:"gtm.js"}),t(r)}(window,document);</script>
1<meta name=twitter:title property=og:title content="TinyPNG – Optimize AVIF, WebP, JPEG and PNG Images with TinyPNG API"><meta name=twitter:description property=og:description content="Automate your AVIF, WebP, JPEG and PNG compression workflow. Compress, resize and convert images seamlessly with TinyPNG's API."><meta name=twitter:image:src property=og:image content=https://tinypng.com/images/social/developer-api.jpg><meta property=og:type content=website><meta property=og:url content=https://tinypng.com/developers><meta name=twitter:card content=summary_large_image><meta name=twitter:site content=@tinypng><meta property=fb:admins content=674377478></head><body class=developers><header id=top><nav data-nav><ul><li><a href=/ >Web</a></li><li class=cdn><a id=cdnUrl href=https://tinify.com/cdn>CDN</a></li><li class=hide-large><a href=/photoshop>Photoshop</a></li><li><a href=/developers><span class=hide-mobile>Developer</span> API</a></li><li class=hide-medium><a href=/third-party>Third-Party</a></li><li class=hide-mobile><a href=/analyzer>Analyzer</a></li><li><a id=pricingUrl href=https://tinify.com/pricing/web>Pricing</a></li><li data-login></li></ul><figure class=logo><a id=homeUrl href=/ ><span>TinyPNG</span></a></figure></nav><div class=hgroup><h1>Developer API</h1><h2>Automate your AVIF, WebP, JPEG and PNG compression workflow</h2><p>Hook up your server to optimize all your AVIF, WebP, 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.</p><div server-rendered=true><div data-developers-registration=true class=getyourkey><form method=post class=developers><input name=fullName autocomplete=name placeholder="Your full name" required><input name=mail placeholder="Your email address" type=email autocomplete=email required><input type=submit value="Get your API key" autocomplete=off></form></div></div></div></header><main><section><aside><div data-developers-login=true server-rendered=true class="block dark unauthenticated"><h2>Already subscribed?</h2><form method=post class=loginform><input name=mail type=email placeholder="Your mail address"><p>We will send you a link by mail that will sign you in instantly!</p><button disabled><p>Send link</p></button></form></div><a href=/developers/reference><div class="block dark"><h2>Documentation</h2><p>Go straight to the <strong>reference</strong> and view the <strong>examples</strong> how to use the API in your own code.</p></div></a></aside><article><h2>Getting started</h2><p>Once you retrieve your key, you can immediately start shrinking images. Official client libraries are available for <a href=/developers/reference/ruby>Ruby</a>, <a href=/developers/reference/php>PHP</a>, <a href=/developers/reference/nodejs>Node.js</a>, <a href=/developers/reference/python>Python</a>, <a href=/developers/reference/java>Java</a> and <a href=/developers/reference/dotnet>.NET</a>. You can also use the <a href=https://wordpress.org/plugins/tiny-compress-images/ >WordPress plugin</a> to compress your WebP, JPEG and PNG images.</p><p>The community has also created a large number of <a href=/third-party>third-party add-ons</a> using the Developer API.</p><p>You can also create your own integration with any HTTP(S) client. The server will c
1ompress your image and respond with a URL where you can grab the result.</p><pre>curl --user api:<em>YOUR_API_KEY</em> \
2      --data-binary @<strong>unoptimized.png</strong> -i https://api.tinify.com/shrink
3</pre><h2>Features</h2><h3>Same API for all image formats</h3><p>The API compresses AVIF, WebP, JPEG and PNG images. Simply upload your source image and download the optimized result. Everything else happens <strong>automatically</strong>.</p><h3>Upload directly or provide a URL to the image</h3><p>You can either <strong>upload</strong> images directly or specify a <strong>URL</strong> to the image you want to compress.</p><h3>Convert images to AVIF, WebP, JPEG or PNG <small>(new)</small></h3><p>Convert your images to another format, or ask the API to give you the smallest image format! Images with a transparent background can be filled with a color you specify.</p><h3>Preserve metadata</h3><p>You can choose to preserve <strong>copyright information</strong>, the <strong>GPS location</strong> and the <strong>creation date</strong> in the compressed JPEG images. For PNG images the copyright information can be preserved.</p><h3>Amazon S3 and Google Cloud Storage <small>(new)</small></h3><p>You can instruct the API to save the optimized images directly in your <strong>Amazon S3</strong> or <strong>Google Cloud Storage</strong> buckets. When doing this you may also set custom Cache-Control and Expires headers.</p><h3>Perfect image resizing</h3><p>The API can <strong>resize</strong> 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.</p><h3>Area of interest detection</h3><p>Take advantage of <strong>smart cropping</strong> to create thumbnails with <strong>different aspect ratios</strong>. The API will resize your images and crop away the parts that are visually the least interesting.</p><div class=explanation><h2>Area of interest detection explained</h2><figure class=first><img src=/images/smart-resizing/original.jpg alt="Original image"><figcaption>upload your original image ...</figcaption></figure><div class=arrow><img src=/images/smart-resizing/arrow-one.png alt=Arrow></div><figure class=second><img src=/images/smart-resizing/selection.jpg alt="Area of interest detection"><figcaption>... the area of interest is detected ...</figcaption></figure><div class=arrow><img class=two src=/images/smart-resizing/arrow-two.png alt=Arrow></div><figure class=third><img src=/images/smart-resizing/thumbnail.jpg alt="Image smart resized with API"><figcaption>... image is scaled and cropped</figcaption></figure></div><h3>Cut out image detection <small>(new)</small></h3><p>We've added a new algorithm to detect <strong>free standing objects</strong> on plain backgrounds. The API will <strong>add background space</strong> 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.</p><div class="explanation cutout"><h2>Resizing of cut out images explained</h2><figure class=first><img src=/images/smart-resizing/cut-out-image.jpg alt="Original cut out image"><figcaption>upload your original image ...</figcaption></figure><div class=arrow><img src=/images/smart-resizing/arrow-one.png alt=Arrow></div><figure class=second><img src=/images/smart-resizing/detection.jpg alt="API object detection"><figcaption>... the free standing object is detected ...</figcaption></figure><div class=arrow><img class=two src=/images/smart-resizing/arrow-two.png alt=Arrow></div><figure class=third><img src=/images/smart-resizing/new-aspect-ratio.jpg alt="Image with new aspect ratio"><figcaption>... new image size is applied</figcaption></figure></div></article></section><section data-pricing="" server-rendered=true class=pricing><h2 id=pricing>Pricing</h2><div class=leftcolumn><p>You only pay for what you use. The first 500 compressions each month are free. You will <strong>only be billed</strong> if you compress more than 500 images.</p></div><div class=rightcolumn><p>There are no subscription costs and <strong>no minimum fees</strong>. Only successful compressions will be charged.</p></div><div class=break></div><div class=leftcolumn>
3<div id=pricetable class=prices><h3><span class=description>Images uploaded with&nbsp;API</span><span class=price>Price per unit</span></h3><ul><li data-size=500 data-price=0 data-type=unit><span class=description>First <strong>500 images</strong> per&nbsp;month</span><span class=price><strong class=free>free</strong></span></li><li data-size=9500 data-price=0.009 data-type=unit><span class=description>Next <strong>9 500</strong> image compressions</span><span class=price><strong>$0.009</strong> per&nbsp;image</span></li><li data-price=0.002 data-type=unit><span class=description>After <strong>10 000</strong> image compressions</span><span class=price><strong>$0.002</strong> per&nbsp;image</span></li></ul></div><div class=arrow><span>… or simply calculate your costs</span><figure></figure></div></div><div class=rightcolumn><div class=calculator><figure class="panda small"></figure><div class=content><h2>Price calculator</h2><p><label>Compressed images:</label><strong contenteditable=true class=quantity>2 000</strong></p><div class=priceslider><span class=active></span><span tabindex=0 role=slider data-tr-id=legacy_developers_price_slider aria-valuemin=0 aria-valuemax=100 aria-valuenow=NaN class=handle></span></div><p><strong class=price>$13.50</strong><span>total price</span></p></div></div></div><div class=break></div><div class=leftcolumn><p>When you reach your compression limit the API will return the error message: <em>Your monthly limit has been exceeded</em>. Upgrade your account by entering your payment details on your WordPress &amp; API <a href=/dashboard/api>dashboard</a>.</p></div><div class=rightcolumn><p>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.</p></div><div class=break></div><div class=leftcolumn><h2>Corporate subscriptions</h2><p>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 <a href=mailto:[email protected]>[email protected]</a>.</p></div><div class=rightcolumn><h2>Documentation</h2><p>For documentation and code examples in different programming languages you can <a href=/developers/reference>explore the API Reference</a>.</p></div></section></main><div class=unsupported><div class=message><div class=figure></div><h2>Try TinyPNG with a new browser</h2><p>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!</p></div></div><footer><div class=container><ul class=columns><li class=column><a href=/photoshop><strong>Photoshop</strong></a><ul><li><a href=/photoshop/support>Support</a></li><li><a href=/photoshop/eula>EULA</a></li></ul></li><li class=column><a href=/developers><strong>Developer API</strong></a><ul><li><a href=/developers/reference>API reference</a></li><li><a href=/developers/reference/ruby>Ruby gem</a></li><li><a href=/developers/reference/php>PHP library</a></li><li><a href=/developers/reference/nodejs>Node.js package</a></li><li><a href=/developers/reference/python>Python package</a></li><li><a href=/developers/reference/java>JAVA component</a></li><li><a href=/developers/reference/dotnet>.NET client library</a></li></ul></li><li class=column><strong>Official add-ons</strong><ul><li><a href=https://wordpress.org/plugins/tiny-compress-images/ >WordPress plugin</a></li><li><a href=https://zapier.com/developer/invite/45840/f911a9a5d1ca6425ea86ea189935a716/ >Zapier (beta)</a></li></ul></li><li class=column><a href=/third-party><strong>Third-party solutions</strong></a><br><a href=/analyzer><strong>Page analyzer</strong></a><br><a href=https://blog.tinify.com/ ><strong>Blog</strong></a><br><a href=https://jobs.tinify.com/ ><strong>Jobs</strong></a><br><form id=donate_form action=https://www.paypal.com/cgi-bin/webscr method=post target=_top><input name=cmd type=hidden value=_s-xclick><input name=hosted_button_id type=hidden value=LMK73JAWSWPWS><a href=/ onclick="this.parentNode.submit(); return false;" rel=nofollow><strong>Donate</strong></a></form></li><li class=column><ul><li><div class=homes><a class=tinyjpg href=https://tinyjpg.com/ title="Compress JPEG images"><span>Compress JPEG</span></a><a class=tinypng href=https://tinypng.com/ title="Compress PNG images"><span>Compress PNG</span></a></div></li><li><div><p style="margin-bottom: 0.5rem">Follow us at:</p></div></li><li><div class=social-buttons><a class=twitter href=https://twitter.com/Tinypng><img src=/images/twitter-logo.png alt="twitter logo"></a><a class=facebook href=https://www.facebook.com/TinyPng><img src=/images/fb-logo.png alt="Facebook logo"></a><a class=linkedin href=https://www.linkedin.com/company/tinypng/ ><img src=/images/linkedin-logo.png alt="linkedin logo"></a><a class=github href=https://github.com/tinify><img src=/images/github-logo-inverted.png alt="github logo"></a></div></li><li><div data-language-switcher></div></li><li><a href="javascript: Cookiebot.renew()"><span>Cookie settings</span></a></li></ul></li></ul></div><div class=bottom><div class=content><div class=credits><p><span class=madeby>Made by <span class=voormedia>Voormedia</span></span><small>By using this site you accept the <a href=/terms>terms of use</a>.</small></p></div></div></div></footer>
3<script id=grv-widget type=text/plain data-cookieconsent=preferences>!function(e,i){if(!e.groove){var t=function(e,i){return Array.prototype.slice.call(e,i)},a={widget:null,loadedWidgets:{},classes:{Shim:null,Embeddable:function(){this._beforeLoadCallQueue=[],this.shim=null,this.finalized=!1;var e=function(e){var i=t(arguments,1);if(this.finalized){if(!this[e])throw new TypeError(e+"() is not a valid widget method");this[e].apply(this,i)}else this._beforeLoadCallQueue.push([e,i])};this.initializeShim=function(){a.classes.Shim&&(this.shim=new a.classes.Shim(this))},this.exec=e,this.init=function(){e.apply(this,["init"].concat(t(arguments,0))),this.initializeShim()},this.onShimScriptLoad=this.initializeShim.bind(this),this.onload=void 0}},scriptLoader:{callbacks:{},states:{},load:function(e,t){if("pending"!==this.states[e]){this.states[e]="pending";var a=i.createElement("script");a.id=e,a.type="text/javascript",a.async=!0,a.src=t;var s=this;a.addEventListener("load",function(){s.states[e]="completed",(s.callbacks[e]||[]).forEach(function(e){e()})},!1);var o=i.getElementsByTagName("script")[0];o.parentNode.insertBefore(a,o)}},addListener:function(e,i){"completed"!==this.states[e]?(this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(i)):i()}},createEmbeddable:function(){var i=new a.classes.Embeddable;return e.Proxy?new Proxy(i,{get:function(e,i){return e instanceof a.classes.Embeddable?Object.prototype.hasOwnProperty.call(e,i)||"onload"===i?e[i]:function(){e.exec.apply(e,[i].concat(t(arguments,0)))}:e[i]}}):i},createWidget:function(){var e=a.createEmbeddable();return a.scriptLoader.load("groove-script","https://11447344-c647-4855-9011-1d04bc920c8d.widget.cluster.groovehq.com/api/loader"),a.scriptLoader.addListener("groove-iframe-shim-loader",e.onShimScriptLoad),e}};e.groove=a}}(window,document),window.groove.widget=window.groove.createWidget(),window.groove.widget.init("11447344-c647-4855-9011-1d04bc920c8d",{preferLocal:!0});</script>
3<script>window.location.href.indexOf("acceptance")>=0?(document.getElementById("cdnUrl").href="https://acceptance.tinify.com/cdn",document.getElementById("pricingUrl").href="https://acceptance.tinify.com/pricing/web"):window.location.href.indexOf("localhost")>=0?(document.getElementById("cdnUrl").href="/cdn",document.getElementById("pricingUrl").href="/pricing/web"):(document.getElementById("cdnUrl").href="https://tinify.com/cdn",document.getElementById("pricingUrl").href="https://tinify.com/pricing/web");</script>
3</body></html>

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.