<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: TinySharp</title>
    <description>The latest articles on DEV Community by TinySharp (@tinysharp_8b688d65139fe42).</description>
    <link>https://dev.to/tinysharp_8b688d65139fe42</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3540192%2Fed1fbc92-9654-4894-9b10-30a41c3ae009.png</url>
      <title>DEV Community: TinySharp</title>
      <link>https://dev.to/tinysharp_8b688d65139fe42</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tinysharp_8b688d65139fe42"/>
    <language>en</language>
    <item>
      <title>How I Built a Free Image Optimization API (with WordPress Plugin Integration)</title>
      <dc:creator>TinySharp</dc:creator>
      <pubDate>Tue, 30 Sep 2025 16:51:26 +0000</pubDate>
      <link>https://dev.to/tinysharp_8b688d65139fe42/how-i-built-a-free-image-optimization-api-with-wordpress-plugin-integration-1g98</link>
      <guid>https://dev.to/tinysharp_8b688d65139fe42/how-i-built-a-free-image-optimization-api-with-wordpress-plugin-integration-1g98</guid>
      <description>&lt;p&gt;Modern websites live and die by performance. Large, unoptimized images are still one of the biggest reasons pages load slowly — especially on eCommerce and WordPress sites.&lt;/p&gt;

&lt;p&gt;That’s why I built &lt;a href="https://tinysharp.com/" rel="noopener noreferrer"&gt;TinySharp&lt;/a&gt;, a free image optimizer that comes with:&lt;/p&gt;

&lt;p&gt;🌐 API access (beta) — for developers who want to integrate image compression directly into their workflow.&lt;/p&gt;

&lt;p&gt;🔌 WordPress plugin — so site owners can bulk-optimize their Media Library without leaving the dashboard.&lt;/p&gt;

&lt;p&gt;🛠️ Free web tools — quick drag-and-drop optimizers for everyday use.&lt;/p&gt;

&lt;p&gt;Example: Using the TinySharp API with Node.js&lt;/p&gt;

&lt;p&gt;Here’s a minimal snippet showing how you can send an image to the API and get a compressed WebP version back:&lt;/p&gt;

&lt;p&gt;import fetch from "node-fetch";&lt;br&gt;
import fs from "fs";&lt;/p&gt;

&lt;p&gt;async function optimizeImage() {&lt;br&gt;
  const res = await fetch("&lt;a href="https://api.tinysharp.com/optimize" rel="noopener noreferrer"&gt;https://api.tinysharp.com/optimize&lt;/a&gt;", {&lt;br&gt;
    method: "POST",&lt;br&gt;
    headers: { "Authorization": "Bearer YOUR_API_KEY" },&lt;br&gt;
    body: JSON.stringify({&lt;br&gt;
      url: "&lt;a href="https://example.com/image.jpg" rel="noopener noreferrer"&gt;https://example.com/image.jpg&lt;/a&gt;",&lt;br&gt;
      format: "webp",&lt;br&gt;
      quality: 80&lt;br&gt;
    })&lt;br&gt;
  });&lt;/p&gt;

&lt;p&gt;const buffer = await res.arrayBuffer();&lt;br&gt;
  fs.writeFileSync("optimized.webp", Buffer.from(buffer));&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;optimizeImage();&lt;/p&gt;

&lt;p&gt;This snippet fetches a remote image, compresses it via TinySharp, and saves it locally as WebP.&lt;/p&gt;

&lt;p&gt;Why I Open-Sourced a Free Optimizer&lt;/p&gt;

&lt;p&gt;There are paid tools out there (TinyPNG, Cloudinary, etc.), but I wanted to create something developer-friendly, free to start, and with WordPress support out of the box.&lt;/p&gt;

&lt;p&gt;⚡ Results: Reduce images from 1.5 MB → a few KB without visible quality loss.&lt;/p&gt;

&lt;p&gt;📦 Integration: WordPress plugin for non-tech users.&lt;/p&gt;

&lt;p&gt;🔑 API: Simple JSON interface for devs.&lt;br&gt;
Try the free audit tool → TinySharp Audit&lt;/p&gt;

&lt;p&gt;Install the WordPress plugin (beta)&lt;/p&gt;

&lt;p&gt;Or play with the API directly (docs + Postman collection included)&lt;/p&gt;

&lt;p&gt;Would love feedback from other devs — what integrations would you find most useful? (Next.js, Gatsby, Shopify, something else?)&lt;/p&gt;

</description>
      <category>showdev</category>
      <category>api</category>
      <category>performance</category>
      <category>wordpress</category>
    </item>
  </channel>
</rss>
