npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-pictomancer

v0.6.0

Published

n8n community node for Pictomancer.ai - image optimization (resize, compress, convert, crop, pipeline)

Readme

n8n-nodes-pictomancer

n8n community node for Pictomancer.ai - image optimization in your workflows: resize, compress, convert (JPEG/PNG/WebP/TIFF/GIF/AVIF), crop, and multi-step pipelines.

Install

In n8n: Settings → Community Nodes → Install and enter n8n-nodes-pictomancer.

Or with npm (self-hosted):

npm install n8n-nodes-pictomancer

Credentials

Create a Pictomancer API credential:

  • API Key - Bearer token from app.pictomancer.ai. Optional: without it you are on the free tier (50 requests per IP).
  • Base URL - defaults to https://api.pictomancer.ai.

Operations

| Operation | Input | Output | |-----------|-------|--------| | Analyze | URL or binary | JSON metadata (size_bytes) | | Resize | URL or binary | Binary image | | Compress | URL or binary | Binary image | | Convert | URL or binary | Binary image | | Crop | URL or binary | Binary image | | Pipeline | URL or binary | Binary image |

  • Input Type switches between a source URL and binary data from the previous node (sent as a data: URI).
  • Image operations output binary data (default property data) plus size_bytes, mime_type, and billed in the item JSON. billed is false when compress produced no size gain - those requests are free.
  • Options exposes quality (q), output format, metadata strip, lossless, and the AVIF effort knob.
  • Quality Target (SSIM) (compress and convert): ask for the smallest file with SSIM >= target (0-1) instead of picking a q value. Mutually exclusive with Quality (q); jpeg, webp and avif only; compress needs an explicit Output Format. When the search runs, the item JSON also carries quality_target, quality_achieved, quality_final_q, and quality_encodes.
  • Crop Mode (crop) switches between three mutually exclusive modes: Manual (X/Y/Width/Height), Smart (Gravity picks the window; needs Width/Height), and Trim (removes a uniform background border; Threshold defaults to 10). When a crop actually trims, the response carries X-Pictomancer-Trim-Left/-Top/-Width/-Height headers.
  • Fill Width / Fill Height / Gravity (resize, under Options): set both to resize and smart-crop to exact dimensions in one call instead of Scale/Scale X/Scale Y.
  • Autorot (resize, compress, convert, crop, under Options): apply EXIF orientation before processing.
  • Denoise (resize, compress, convert, crop, under Options): median denoise before the operation, radius 1-3 (window 3x3 to 7x7). Base price.
  • Equalize (resize, compress, convert, crop, under Options): auto-contrast (value-channel histogram equalisation, hue and saturation preserved) before the operation.
  • Sharpen (resize, compress, convert, crop, under Options): unsharp-mask sharpen after the operation.
  • Optimize AI-Generated: one-call web optimization of generator output (webp/avif/jpeg/png, max dimension, quality target)
  • Pipeline takes a JSON list of steps, e.g. [{ "type": "resize", "params": { "scale": "0.5" } }, { "type": "convert", "params": { "format": "webp" } }].

Development

npm install
npm test
npm run build

License

MIT