Tutorial: How to pixel sort multiple images or frames with Processing

preview_player
Показать описание


although ffmpeg can split gifs into frames as well, i think it's better to use something else

Рекомендации по теме
Комментарии
Автор

THANK YOU!!! I've been trying to load multiple images into the script somehow for over 2 hours, then I find this!!!

FreakyDDR
Автор

To anyone running Processing 3 and getting a size() error, replace it with surface.setSize(), in the new version of processing they killed size() for use with variables.

Eucal
Автор

getting nullpointererror exception at ' initimg = '
basedir is correct, maybe it's because my filenames are "filename_0111_Layer 16.jpg"?

studiobloomxyz
Автор

Ask and you shall receive! It was originally meant for a quick demonstration to accompany a thread on Reddit, so I didn't really think about.. other people. :D

mfwplayinggames
Автор

I'm quite new to code etc. but I managed to get this to work for me. Just wondering tho, the script pulls the pixels horizontally, how do I go about changing that to vertical?

lukeomeara
Автор

Luke, I'm unable to directly reply to your post, but try inverting the values of `int x` and `int y` under the sortRow() and sortColumn() functions; i.e. row/column becomes 0, and 0 becomes row/column.

mfwplayinggames
Автор

Hi thank you for your script.I´m using mac .All i have to do is put the link of the folder : String basedir = "Machintosh

it gives me the error : null pointer exception

opressyon
Автор

I hope some one can help out. I keep getting "Setting 'Run Sketches on Display' preference to display 1"

KriptexHD
Автор

have put G:/Macintosh and I'm still getting the error nullpointerexception

cakyART
Автор

Brand new to processing, run the script without alterations to test on a single .jpg image, put in directory and file resolution, get "NullPointException" with this line highlighted under void draw() {: 

 if (i +1 > filenames.length) {println("Uh.. Done!"); System.exit(0);}

Any idea why?

Cheers.

mbrock
Автор

so i've been trying to get the canvas size to automatically resize to the input resolution. pretty sure it would need to be done with img.height/img.width (like Kim did in the original) just can't figure how to call one of the images from the basedir in set up so it can grab this data. any ideas? or have you already been down this path?

dilect
Автор

i keep getting "no such file or directory" when i run the cmd

nickjoannides
Автор

keep getting error nullpointerexception. any advice? below hasnt seemed to help ....thank ya

mattrosenbaum
Автор

Hi,

I keep getting a "NullPointerException" on this line:
initimg =

Here's more code from that section:

void setup() {
frameCount = 0;
if (resumeprocess > 0) {frameCount = resumeprocess - 1;}
filenames = folder.list(extfilter);
initimg =
size(720, 480); // Takes the size of the first image in the folder.
}

nielsvanleenen
Автор

Can you do a (good) tutorial on datamoshing?

ethancandy
Автор

Hello! Can you please update this tutorial? The code has changed

carmarthen
Автор

Maybe rename the video to something more relevant so it comes up in google search :)

FreakyDDR