[dev] [farbfeld] farbfeld-resize update

2016-02-12 Thread Tim Elliott
I pushed an update to farbfeld-resize: https://github.com/ender672/farbfeld-resize It now operates in 16-bit color. Interpolation is now in a single function. The whole project is one file, zero dependencies, 131 sloc. It transposes the image during each resizing pass in order to achieve vertic

Re: [dev] [farbfeld] cubic resizing filter

2016-01-30 Thread Tim Elliott
On Sat, Jan 30, 2016 at 11:12 AM, FRIGN wrote: > Care to share your experience using farbfeld to implement this? :) The invert.c example made the implementation very easy. You'll noticed this is just a modified copy. The simplicity of the format and the pure use of stdin/stdout means that there

[dev] [farbfeld] cubic resizing filter

2016-01-30 Thread Tim Elliott
Here is a cubic (catmull-rom) resizing filter for farbfeld: https://github.com/ender672/farbfeld-resize Example usage is: $ jpg2ff < in.jpg | ./resize 123 456 | ff2png > out.png The arguments indicate the desired maximum height and width. The image above will be resized to fit inside a 123x456 bo