Screen Capture format and save alpha channel

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
mpsinfo
Junior Coder
Posts: 22
Joined: Mon Apr 19, 2021 1:31 pm

Screen Capture format and save alpha channel

Post by mpsinfo » Sat Feb 08, 2025 4:05 pm

I have always used on my macroscheduler V. 11, screencapture command with BMP saving, maybe because other formats cannot be used with this version or is there already the possibility of saving PNG and JPG? :?
Anyway, this is not my problem. However, I have seen that when the BMP file is saved, it contains, in addition to the RGB channels, an Alpha channel ... Does it happen to you too? .. Is it possible to save images without this additional channel, because then it creates problems for me when I have to automatically join multiple BMP screens together. :evil:

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1414
Joined: Sun Nov 03, 2002 3:19 am

Re: Screen Capture format and save alpha channel

Post by Dorian (MJT support) » Sat Feb 08, 2025 5:02 pm

There is no way to change that, and I can't specifically support v11 as it has been out of support for quite some time because it's 15 years old.

However, ScreenCapture has been able to save JPG files since v10 and PNGs since v14, so it's probably worth trying to save as a .jpg.

Captures a portion of the screen to a .BMP (bitmap) or .JPG (jpeg) file and (by default) to the clipboard.
.....Valid file types are .BMP, .PNG (v14) or .JPG

mpsinfo
Junior Coder
Posts: 22
Joined: Mon Apr 19, 2021 1:31 pm

Re: Screen Capture format and save alpha channel

Post by mpsinfo » Sat Feb 08, 2025 6:46 pm

I think it is therefore sufficient to change
ScreenCapture>200,10,300,60,Z:\filename.bmp
to
ScreenCapture>200,10,300,60,Z:\filename.jpg

But does the jpg format create a compressed file? because I would need the saved file to have no color or pixel alterations compared to the one on the video.

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1414
Joined: Sun Nov 03, 2002 3:19 am

Re: Screen Capture format and save alpha channel

Post by Dorian (MJT support) » Sun Feb 09, 2025 5:46 pm

I think a JPG is a compressed file by nature, so yes.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts