OpenCompressify: Compress Images and Generate Markdown Embeds Instantly

Learn how to use OpenCompressify to compress images and generate Markdown embed links. A Node.js web app that automatically resizes, optimizes images and provides ready-to-use Markdown code.

Rafi
Written by Rafi
📅
Published February 1, 2025
⏱️
Read Time 2 min
📊
Difficulty Beginner

We’ve all been there. You’re writing a blog post, documentation, or README, and you need to add an image. You grab a screenshot or photo, paste it in, and suddenly your page loads slowly because that image is 2MB. Or maybe you need to resize it, compress it, and figure out the right Markdown syntax—all while losing flow.

What if there was a tool that handled all of that in seconds? Upload an image, set your preferences, and get a ready-to-paste Markdown link?

That’s exactly what OpenCompressify does. It’s a simple but powerful web tool that compresses images, resizes them, and gives you perfect Markdown embed code—ready to use anywhere.

ℹ️ Info

OpenCompressify is a web-based image tool that compresses images, resizes them to your specifications, offers auto-deletion for privacy, and generates Markdown embed code—all in one click!

What You’ll Learn

  • What OpenCompressify does
  • How to use it for your projects
  • How to set up your own instance
  • Tips for optimizing images in Markdown

Key Features

📖 🖼️ Image Upload & Compression

Upload any image and OpenCompressify automatically compresses it. Uses Sharp under the hood for high-quality compression that keeps your images looking great while reducing file size.

📏 Adjustable Width

Set your preferred width (default 800px). The image is resized proportionally, perfect for different content layouts—blog posts, documentation, or social media.

📖 🎚️ Quality Control

Adjust image quality with a slider (60%-90%). Find the perfect balance between file size and visual quality for your needs.

🔗 Markdown Embed Generation

After upload, get a ready-to-use Markdown link:

![Image](your-image-url)

Copy, paste, done. No more figuring out syntax.

📖 🗑️ Auto-Delete

Set an auto-delete timer (default 18 hours). Images automatically vanish after the set time—perfect for temporary sharing or privacy-sensitive content.

📖 👁️ Live Preview

See exactly what your image will look like before uploading. No surprises—preview at the bottom of the page.

How It Works

The workflow is beautifully simple:

Upload Image → Configure (width, quality, auto-delete) → Compress → Generate Markdown → Copy & Use

Technical Details

OpenCompressify uses a straightforward tech stack:

  1. Express.js - Handles web server and routing
  2. Multer - Processes file uploads
  3. Sharp - High-performance image processing and compression
  4. HTML/CSS/JS - Clean, simple frontend

The compression happens server-side, so even large images are handled efficiently. Sharp uses libvips—one of the fastest image processing libraries available.

💡 Tip

Sharp can process images 4x faster than ImageMagick while using less memory. That’s why it’s the industry standard for Node.js image processing!

Usage Guide

Using the Demo Server

The easiest way to try OpenCompressify is to use the demo server:

OpenCompressify Demo

Step-by-Step

  1. Select an Image

    • Click to upload or drag and drop
    • Supports common formats (PNG, JPG, JPEG, WebP, GIF)
  2. Configure Settings

    • Width: Set your preferred width (default 800px)
    • Quality: Adjust slider between 60-90%
    • Auto-delete: Set time in minutes (default 1080 = 18 hours)
  3. Preview

    • See the compressed image at the bottom of the page
    • Verify quality before finalizing
  4. Upload

    • Click submit
    • Receive your Markdown embed link
  5. Copy & Use

    ![Your Image](https://your-cdn-url/image.jpg)
    

    Paste directly into your Markdown files!

Use Cases

1. Blog Posts

Quickly compress screenshots and get Markdown links. No need to manually optimize images before writing.

2. Documentation

Add images to your README or docs with properly compressed images. Faster load times for readers.

3. GitHub Issues

Share screenshots in issues with auto-delete. Useful for temporary bug reports.

4. Technical Writing

Include diagrams and images in articles without worrying about file sizes or format conversion.

5. Social Media

Resize images for different platforms. Set width to match your target platform’s requirements.

Self-Hosted Installation

Want to run your own instance? Here’s how:

Prerequisites

  • Node.js (v14 or higher)
  • npm

Installation

# Clone the repository
git clone https://gitlab.com/krafi/opencompressify.git
cd opencompressify

# Install dependencies
npm install

# Start the server
npm start

Configuration

The server runs on port 3000 by default. You can customize:

  • Upload directory
  • Maximum file size
  • Default compression settings

Deployment

Press on a tab to see code

Glitch:

  1. Create a new Glitch project
  2. Import from GitLab
  3. Deploy instantly!

Railway:

  1. Connect your GitLab repository
  2. Railway auto-detects Node.js
  3. Deploy with one click!

Render:

  1. Connect GitLab repository
  2. Set build command: npm install
  3. Set start command: npm start

Why This Project is Useful

OpenCompressify solves common image workflow problems:

  • No Manual Compression: Upload and compress in one step
  • Markdown Ready: Get perfect embed code every time
  • Privacy Options: Auto-delete for sensitive content
  • Preview First: No surprises with image quality
  • Self-Hostable: Run your own instance if needed
  • Fast Processing: Sharp delivers professional results
💡 Tip

Combine OpenCompressify with your Markdown workflow! Use it alongside tools like my OpenCourseFlow (video course manager) and other automation tools for a complete productivity setup.

Troubleshooting

📖 Upload failing?
  1. Check file size limits (default 10MB)
  2. Verify supported format (PNG, JPG, JPEG, WebP, GIF)
  3. Check server logs for errors
  4. Ensure upload directory is writable
📖 Image quality poor?
  1. Increase quality slider (try 85-90%)
  2. Use PNG for graphics with text
  3. Use JPG for photos
  4. Check original image quality
📖 Markdown not working?
  1. Verify the URL is correct and accessible
  2. Check that the image hasn’t been auto-deleted
  3. Try opening the URL directly in a browser
  4. Some platforms need full URL, not relative path
📖 Auto-delete not working?
  1. Verify the timer was set (not set to 0)
  2. Check server is running (auto-delete requires server check)
  3. Remember: once deleted, images cannot be recovered

Conclusion

OpenCompressify is a simple but essential tool for anyone who works with images in Markdown. Whether you’re writing documentation, blogging, or sharing content, it saves time and ensures your images are optimized.

Try the demo version, or set up your own self-hosted instance for complete control. Your readers will thank you for faster-loading pages!

Source Code

View and contribute to the project: OpenCompressify on GitLab

Happy compressing!

Knowledge Check

Test your knowledge about OpenCompressify

Discussion

0 comments
Reading Progress
4 min left 0%
Welcome back! Sign in to join the discussion.

Please verify your email to sign in.

Enter the 6-digit code from your verification email.

Didn't receive the email?

Remember your password?

Create an account to comment and join the community.
Letters, numbers, and underscores only

Check your email! We've sent a verification code.

Enter the 6-digit code to complete your registration, or click the link in your email.

Didn't receive the email?

Wrong email?

Enter your email address and we'll send you a code to reset your password.

Remember your password?

Enter the 6-digit code from your email and create a new password.

Didn't receive code?

Welcome aboard!

Your account has been created successfully.

Welcome back! Sign in to join the discussion.

Please verify your email to sign in.

Enter the 6-digit code from your verification email.

Didn't receive the email?

Remember your password?

Create an account to comment and join the community.
Letters, numbers, and underscores only

Check your email! We've sent a verification code.

Enter the 6-digit code to complete your registration, or click the link in your email.

Didn't receive the email?

Wrong email?

Enter your email address and we'll send you a code to reset your password.

Remember your password?

Enter the 6-digit code from your email and create a new password.

Didn't receive code?

Welcome aboard!

Your account has been created successfully.