Hacker News new | past | comments | ask | show | jobs | submit login

I don't have a good grasp on image libraries, but this might be a fun project to attempt:

Build a script that imports ZIP files full of JPEGs or a single JPEG. After import, display each photo in succession. Prompt the user to select the contiguous space that is unwanted (either the space around the single photo or the space between the multiple photos). This would work similarly to the Photoshop Magic Wand (with a slider to manage tolerance). The script could then pull out the positives (the areas to keep) and rotate them so the bottom is parallel to the x-axis.

Here's a StackOverflow link for Python image libraries: http://stackoverflow.com/questions/94875/image-processing-in...

And i'm pretty sure a magic wand tool could be implemented in javascript to give you a responsive front-end. Import image into a canvas element. Capture the canvas element in a bitmap array object. Iterate through object (which are pixels) and flagging the ones within the tolerance of the clicked color.

Find a way to serialize your mask selection (output from the magic wand javascript function) and send the request back to the script for processing with the image lib. Make it spit out the resulting image or ZIP of images.

I looked for an existing implementation of the magic wand javascript function, but a cursory search wasn't yielding much. I don't want to trivialize the task, but I think it's doable over a full weekend for someone with basic programming chops.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: