Automatically apply opacity when PNG files are in folder.

Do you need consulting from ImageMagick experts and are willing to pay for their expertise? Or are you well versed in ImageMagick and offer paid consulting? If so, post here otherwise post elsewhere for free assistance.
Post Reply
Cidona
Posts: 5
Joined: 2018-04-13T09:08:44-07:00
Authentication code: 1152

Automatically apply opacity when PNG files are in folder.

Post by Cidona »

Dear ImageMagick Consultants.
I am not familiar with ImageMagick or programming.
What I’m ultimately looking for is:
I’m going to have a folder in each of my Projects called “Opacity PNGs”. I want it so that when PNG files are put into that folder that they will automatically be applied with opacity.
We might need to do a little bit of trial and error to know the percentage of opacity as I am not familiar with ImageMagick’s settings. I can provide samples of what I’m looking to achieve if interested in project.
Is this something that can be accomplished via ImageMagick and it’s programming capibilities? If so I would very much appreciate if you could provide pricing and time frame.
I am on Windows 10 64bit.
Any questions, concerns, etc?
Thank you.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Automatically apply opacity when PNG files are in folder.

Post by snibgo »

Cidona wrote:... they will automatically be applied with opacity.
What does that mean?

PS. Please tell us what version of IM you use, on what platform.
snibgo's IM pages: im.snibgo.com
Cidona
Posts: 5
Joined: 2018-04-13T09:08:44-07:00
Authentication code: 1152

Re: Automatically apply opacity when PNG files are in folder.

Post by Cidona »

Hi snibgo.

Thank you for your prompt response.

I do not currently use IM. I came across it while trying to find something to accomplish what I'm trying to achieve. It seemed with the ability to program IM, I thought it might be a good solution. Not sure what you mean by what platform I'm on. I am on Windows 10 64 bit, and would be open to additional tools to accomplish the desired result.

As far what I mean by "they will automatically be applied with opacity" - I'm using the term 'opacity' as that is a term in Snagit Editor that achieves the desired visual result (but very manual method). Please see below links to sample. The first link would be the starting point and second would be the desired end result. These are jpgs but real file will be PNG. It's that 'faded' look I'm trying to have automatically applied.

https://i.imgur.com/I930yI9.jpg

https://i.imgur.com/9ak4p1g.jpg
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Automatically apply opacity when PNG files are in folder.

Post by snibgo »

So you simply want to make each pixel a certain opacity?

Code: Select all

magick in.png -alpha opaque -channel A -evaluate Multiply 0.6 +channel out.png
snibgo's IM pages: im.snibgo.com
Cidona
Posts: 5
Joined: 2018-04-13T09:08:44-07:00
Authentication code: 1152

Re: Automatically apply opacity when PNG files are in folder.

Post by Cidona »

Hi snibgo.

Yes, I'm looking for uniform application of opacity to the entire image.

Thank you for that code. Unfortunately I don't know what to do with it or how to assign it to specific folders. Would this be something that you would be able to work on with me to get it up and running? Price/by hour?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Automatically apply opacity when PNG files are in folder.

Post by fmw42 »

If you want to process a whole folder of images, then use mogrify rather than convert. See https://www.imagemagick.org/Usage/basics/#mogrify

create a new output folder
change directory to input folder

Code: Select all

mogrify -path path2/output_folder -format png -alpha opaque -channel A -evaluate Multiply 0.6 +channel *.png
If you leave off the -path path2/output_folder, then the output will overwrite your input. But that is dangerous if you make a mistake. So make a backup of your input folder.

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at http://www.imagemagick.org/discourse-se ... f=1&t=9620

For novices, see

http://www.imagemagick.org/discourse-se ... f=1&t=9620
http://www.imagemagick.org/script/comma ... essing.php
http://www.imagemagick.org/Usage/reference.html
http://www.imagemagick.org/Usage/
https://github.com/ImageMagick/usage-markdown
Cidona
Posts: 5
Joined: 2018-04-13T09:08:44-07:00
Authentication code: 1152

Re: Automatically apply opacity when PNG files are in folder.

Post by Cidona »

Thank you fmw42 for the free code.

Truth be told though, I haven't got a clue what to do with it and am too busy currently (fire protection designer), to properly learn it on the fly.

I guess what I'm looking for is someone to walk me through the entire process. Installation, the code, testing and communicating via phone and screen sharing. I'm looking for something that is going to be very efficient, quick, error resistant, etc. so would be best handled by a professional rather than my first run at coding.

Please let me know if someone is interested in getting this up and running for me.

Thank you again.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Automatically apply opacity when PNG files are in folder.

Post by fmw42 »

You need to tell us on what platform you are trying to do this. Installation and command syntax are different. See https://www.imagemagick.org/script/download.php
will.anderson324
Posts: 3
Joined: 2017-12-11T14:38:32-07:00
Authentication code: 1152
Location: England

Re: Automatically apply opacity when PNG files are in folder.

Post by will.anderson324 »

Hi Cidona,

I think I can put a double-click-able application together for you to do what you want. Drop me a direct message with a couple of example before and after PNGs and we'll have a chat about exactly what you're looking for.

Cheers,

Will
Cidona
Posts: 5
Joined: 2018-04-13T09:08:44-07:00
Authentication code: 1152

Re: Automatically apply opacity when PNG files are in folder.

Post by Cidona »

Thank you willmanderson324. I'll PM you.

Best Regards.
Post Reply