PAMOIL(1)
π PAMOIL β it's giving oil painting β¨
okay bestie, welcome to the Pamoil User Manual, section 1 of the General Commands Manual π β this is the page where we turn boring pixels into art, no cap.
β¨ NAME β¨
pamoil β turn a PAM image into an oil painting πΌοΈ
πΈ SYNOPSIS πΈ
pamoil
[-n N]
[pamfile]
π DESCRIPTION π
This program is part of Netpbm(1). π«Ά
So basically, pamoil reads a Netpbm image as input, does an "oil transfer" on it, and writes out the same type of Netpbm image as output. Iconic behavior honestly.
The oil transfer is described in "Beyond Photography" by Holzmann, chapter 4, photo 7. It's a sort of localized smearing. That's the vibe. π₯
Here's how the smearing actually works, step by step: first, assume a grayscale image. For each pixel in the image, pamoil looks at a square neighborhood around it. Then pamoil figures out what the most common pixel intensity in that neighborhood is, and puts a pixel of that intensity into the output in the same position as the input pixel. Slay. π
For color images, or literally any arbitrary multi-channel image, pamoil computes each channel separately (so like: red, green, and blue) using the exact same method as the grayscale case above. Every channel gets the same treatment, no favoritism. π
And at the edges of the image, where the regular neighborhood would run off the edge β because bestie, the math can't just keep going β pamoil uses a clipped neighborhood instead. Not me being careful about boundaries π
π OPTIONS π
In addition to the options common to all programs based on libnetpbm (most notably -quiet, see Common Options), pamoil recognizes the following command line option:
-nsize β This is the size of the neighborhood used in the smearing π The neighborhood is this many pixels in all four directions. The default is3.
π¦ SEE ALSO π¦
pgmbentley(1)ppmrelief(1)ppm(1)
π AUTHOR π
This program is based on pgmoil Copyright (C) 1990 by Wilson Bent (whb@hoh-2.att.com)
Modified to ppm by Chris Sheppard, June 25, 2001
Modified to pnm, using pam functions, by Bryan Henderson June 28, 2001.
π DOCUMENT SOURCE π
This manual page was generated by the Netpbm tool makeman from HTML source. The master documentation is at
http://netpbm.sourceforge.net/doc/pamoil.html
and that's the whole thing, bestie π this was netpbm documentation, dated 25 June 2001, and it lives in the Pamoil User Manual(1) β go make some oil paintings, you main character π¨β¨π«Ά
π¦ where this page comes from
- debian bookworm: netpbm 2:11.01.00-2 Β· MIT
- debian trixie: netpbm 2:11.10.02-1 Β· MIT
- ubuntu noble: netpbm 2:11.05.02-1.1build1 Β· MIT
- ubuntu resolute: netpbm 2:11.10.02-1build1 Β· MIT
- ubuntu stonking: netpbm 2:11.13.03+ds-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms