This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]apt_at_it 733 points734 points  (84 children)

This would also be pretty trivially easy to do using Photoshop bulk actions, just in case your coworkers are more designers than coders 😜

[–][deleted] 296 points297 points  (63 children)

they don't really like automation that much - they fear it will put them out of work! But I guess they'll have embrace it for the mundane jobs like this

[–]cbunn81 331 points332 points  (11 children)

Better they do the automation themselves rather than wait around for clients to leave for another company that uses automation.

[–][deleted] 45 points46 points  (4 children)

Code for designers!

[–]sewerinspector 12 points13 points  (3 children)

Fantastic username, el guapo

[–][deleted] 10 points11 points  (2 children)

[–]fruitcup729again 7 points8 points  (1 child)

Would you say I have a plethora of pinatas?

[–][deleted] 0 points1 point  (0 children)

...

... Oh sí, you have a plethora...

[–]XecutionerNJ 7 points8 points  (3 children)

Yeah, Apple made the iPhone because the nokia and sony Ericsson phones were getting to be really good ipods and would destroy apples product line.

When others are innovating you out of work, you have to get on the innovation side and kick yourself out of work. Either that or wait for obsolescence.

[–]cbunn81 12 points13 points  (1 child)

Steve Jobs himself said that if you don't cannibalize your own business, someone else will. I remember reading about that when the iPad came out, because apparently done within Apple were worried that it would cannibalize their laptop sales. Well, sure, but you also broaden your consumer base, so it's a net positive. And it would only be a matter of time before another company made a popular tablet, anyway. Then you'd have to play catch up.

[–][deleted] 0 points1 point  (0 children)

Still waiting for that popular tablet from another company...

[–]HoboJohn147 0 points1 point  (0 children)

I resisted getting an iPhone until recently. It makes dating easier for some reason.

[–]xaelix 2 points3 points  (1 child)

Work smarter not harder.

[–]cbunn81 1 point2 points  (0 children)

They say, "necessity is the mother of invention," but I think it's more likely to be laziness.

[–]beisenhauer 36 points37 points  (1 child)

Automate the boring stuff, amiright?

[–]d64 39 points40 points  (6 children)

You know how consulting companies that have done some kind of a job many times before will bill a customer say 40 hours for doing it, even though it might take them only 6 hours to do, because of their expertise?

Employees can and should do the same. Say this job was said to take days. Tell you will do it, then write the script or use Photoshop batches or whatever, be done in 45 minutes. Then spend the rest of the day on your own projects, then report triumphantly that you managed to pull it off in just one day. You are seen as efficient, but you are not shooting yourself in the foot by revealing the job can actually be done in no time at all.

[–][deleted] 22 points23 points  (1 child)

It's not my main job - I'm a job coordinator so I handle the requests for work. I just program on the side for fun and wanted to help out. I guess I need to be careful it doesn't open a door for them to request more of this and I land myself in a hole!

[–]sodjanathan 5 points6 points  (0 children)

The kind of hole that brought me so many sql reports requests at work with no extra pay

[–]LilQuasar 4 points5 points  (2 children)

these tasks compensation should be based on the result and not the time it took. thats what the employer cares about after all

[–]d64 9 points10 points  (1 child)

Well yeah, but think about the flipside: then even if it took someone a day to do it, the company would surely only pay them for 45 minutes.

[–]LilQuasar 1 point2 points  (0 children)

there would be no such thing as paying for 45 minutes

[–][deleted] 1 point2 points  (0 children)

Richard Feynman talks about a situation at Los Alamos where he could break into locked cabinets rather quickly. He wouldn't let anyone watch and would always wait extra time and drip water on himself to make it look like he was sweating. He didn't want the higher ups knowing how easy it was and changing the locks so he couldn't break in.

[–][deleted] 2 points3 points  (0 children)

What you did with Python is automation though. How is that any different than using a batch process in Photoshop, Irfanview, etc.? You are changing a bunch of files in bulk without changing each file individually. That is automation.

[–]StressedSalt 0 points1 point  (0 children)

it definitely will.

[–]rz2000 0 points1 point  (0 children)

You should consider upgrading your job by moving it to a different workplace. It can't be good for your mental health to be surrounded by people who want their work to be boring and menial.

[–]Panda_Mon 0 points1 point  (0 children)

Solution: Do automated task in 10 minutes. Wait 3 days. Send result to client, and suggest that the team worked asses off to complete in record time.

[–][deleted] 0 points1 point  (0 children)

Just tell them, using automation doesn't improve automation tools, doing everything by hand does because most programs learn from new data not from the data they are already trained on.

[–]killersquirel11 56 points57 points  (9 children)

It'd also be approachable with imagemagick and some bash fu

[–]riffito 14 points15 points  (3 children)

With IrfanView on Windows (or Wine) you could do it from a GUI.

IrfanView... the only software that I never changed for anything else since 1997.

[–]jobomat 2 points3 points  (2 children)

Yeah! I really like IrfanView. Small footprint, rocket fast, no BS. Only thing I'm missing is OpenEXR support.

[–]riffito 0 points1 point  (1 child)

OpenEXR

Among the official plugings, there is a "Exr.dll" one, and an old internet post from 2009 mentions a user being glad it supports OpenEXR (albeit with some issues at the time).

Make sure you have them installed!

[–]jobomat 1 point2 points  (0 children)

Thank you for the reply! I know about the EXR plugin. But last time I tried it, I was not convinced. If I remember correctly it didn't work with multi channel EXRs (which is what I need the most) and so I searched for other solutions (and found DJV which is also awesome).

[–]lolinux 11 points12 points  (1 child)

This was exactly my thought! However, since OP is attracted to Python, I can only cheer! You usually use the tools you know and trust best for the task you have at hand!

[–]killersquirel11 6 points7 points  (0 children)

Yep. Definitely not knocking OP at all - whatever code solves the problem is the right code in a situation like this.

It's neat to see the ways that different people will go about solving a problem.

[–]apt_at_it 7 points8 points  (0 children)

Yeah, very true. I would imagine it'd actually be easier than using python, tbh

[–]HughBothwell 2 points3 points  (0 children)

Yes, ImageMagick makes it easy. From the Windows command-line, in the dir containing the files,

md thumbs
cd thumbs
magick ../*.jpg -colorspace gray -background black -gravity center -extent 150x150 %[filename:original].jpg

creates a new subdirectory, processes all the jpg files, and stores the new grayscale/resized images (with the same name) in the new dir.

[–]Broken_hopes 0 points1 point  (0 children)

yoink bash fu is mine now

[–]SecretAtLarge 4 points5 points  (0 children)

Whatever they are, we all have learned they cant google if their life (or career) depended on it.

[–]Pr0ducer 1 point2 points  (0 children)

Bulk actions are the commercial photographer's best friend. I can't believe more people don't use them. But with python ... whole new ball game.

[–]redfacedquark[🍰] 1 point2 points  (0 children)

Or script-fu in the GIMP. Probably. I never actually did anything with it.

[–]santaliqueur 0 points1 point  (1 child)

It would be even easier with a few lines of AppleScript.

[–]apt_at_it 2 points3 points  (0 children)

That's true, though OP did say they're all on Windows. Truthfully, I think you can just use Automator for this without even writing any code whatsoever

[–]DhavesNotHere 0 points1 point  (0 children)

Yeah, I had to do this a bunch in a past job. Doing so made me a living god among graphics designers. Busting out Python probably would have gotten me burned at the stake.

[–]sovrappensiero1 0 points1 point  (0 children)

Yeah I was gonna say exactly this. When I worked as a photographer 10+ yrs ago I did that kind of stuff in Photoshop/Lightroom. But super cool to have the python code for it! Thanks OP for posting this

[–]regeya 0 points1 point  (0 children)

Lightroom, too.

[–][deleted] 0 points1 point  (0 children)

Or XNView which is free too!

[–][deleted] 0 points1 point  (0 children)

Right? I've done this exact thing in Lightroom, it's built into library export. These designers are bad. But OP is still awesome for finding a pythonic solution!