Invert B&W PNG to W&B?

Post Reply
Tenzo
Member
Posts: 21
Joined: Wed Jan 31, 2024 11:22 am
Location: USA :(
Contact:

Invert B&W PNG to W&B?

Post by Tenzo »

Hey all,

I am using Switch and the new PSS 24.11. I am sending in a B&W PNG and I am looking for an action that inverts the image to W&B. It seems simple enough, but I am not sure where and what action to accomplish this.

Anyone have an idea?
User avatar
JimmyHartington
Advanced member
Posts: 418
Joined: Tue Mar 22, 2011 7:38 am

Re: Invert B&W PNG to W&B?

Post by JimmyHartington »

I have not tried processing pngs with Pitstop Server yet.
But if you want to invert an image you try to use the curve action and make it go from bottom to top instead of from top to bottom.
User avatar
JimmyHartington
Advanced member
Posts: 418
Joined: Tue Mar 22, 2011 7:38 am

Re: Invert B&W PNG to W&B?

Post by JimmyHartington »

I am now at my computer and have made an example.
And need to clarify that the image needs to grayscale. So when you write Blank and White, do you mean 1-bit? Because then it would not work.

This image shows a pdf with a 8-bit grayscale image. And it gets inverted by applying at "reverse" curve.
Image

You write you have Switch, so another route to take is to use ImageMagick to invert the images. ImageMagick is a command line tool, which can be used in Switch with the Execute Command element or the app Run Command.

https://superuser.com/questions/1194468 ... magemagick
Tenzo
Member
Posts: 21
Joined: Wed Jan 31, 2024 11:22 am
Location: USA :(
Contact:

Re: Invert B&W PNG to W&B?

Post by Tenzo »

JimmyHartington wrote: Fri Dec 06, 2024 7:45 am So when you write Black and White, do you mean 1-bit?
Thank you for guiding me to this solution.

Unfortunately, these are indeed 1-bit PNGs that I am trying to invert.
I am using ImageMagick for the inverting and more in my current flow now but, I was really hoping for a pitstop solution to apply all my transformations in one go.
I know Pitstop is focused on PDFs, but with the new PNG input option I thought it might be possible.
Oh well, maybe in a future update they will add something like that.

Thanks again for the helping out!
loicaigon
Advanced member
Posts: 589
Joined: Wed Jul 10, 2013 10:22 am

Re: Invert B&W PNG to W&B?

Post by loicaigon »

Let's get in touch so that you can tell me more about this need.

Loic

My email is loica@ the company that build PitStop dot com.
Loïc Aigon
Enfocus PitStop Manager
yosimo
Member
Posts: 61
Joined: Tue Mar 27, 2018 6:25 pm

Re: Invert B&W PNG to W&B?

Post by yosimo »

...I was really hoping for a pitstop solution...
Hi,
I have a action list for PitStop Pro with which bitmap images can be inverted.
Maybe it will help.

Action list: https://magentacloud.de/s/sdQmjJRsHNH2oXe
Tenzo
Member
Posts: 21
Joined: Wed Jan 31, 2024 11:22 am
Location: USA :(
Contact:

Re: Invert B&W PNG to W&B?

Post by Tenzo »

yosimo wrote: Mon Mar 24, 2025 4:22 pm
...I was really hoping for a pitstop solution...
Hi,
I have a action list for PitStop Pro with which bitmap images can be inverted.
Maybe it will help.

Action list: https://magentacloud.de/s/sdQmjJRsHNH2oXe
Thanks for the reply!
However, my development ended up needing even more customization so for now I have just defaulted to using Imagemagick for my lots of my raster editing.
Post Reply