VB script in photo shop, error when changine modes to bitmap from grayscale

K
Posted By
knowledgeforeveryone
Sep 2, 2003
Views
292
Replies
1
Status
Closed
i feel that i am alone in this world!!! i am trying to make simple program in VB to convert from grayscale mode to bitmap mode in Photoshop , but i am getting an error. I use to the same code to covert from/to ( cmyk, grayscale…)everything works fine , but when i try to go from grayscale to bitmap, i am getting this

" The argument is not valid "

works fines : docRef.ChangeMode (psConvertToGrayscale)

cause an error : docRef.ChangeMode (psConvertToBitmap)

Help .. thanks

MacBook Pro 16” Mockups 🔥

– in 4 materials (clay versions included)

– 12 scenes

– 48 MacBook Pro 16″ mockups

– 6000 x 4500 px

WS
Warren Sarle
Sep 3, 2003
The usual work-around for bugs like this is to use the Scripting Listener. Be warned, however, that I can’t turn the Scripting Listener off, which is a nuisance.

"Knowledge hungry" wrote in message
i feel that i am alone in this world!!! i am trying to make simple program in VB to convert from grayscale mode to bitmap mode in Photoshop , but i am getting an error. I use to the same code to covert from/to ( cmyk, grayscale…)everything works fine , but when i try to go from grayscale to bitmap, i am getting this

" The argument is not valid "

works fines : docRef.ChangeMode (psConvertToGrayscale)
cause an error : docRef.ChangeMode (psConvertToBitmap)

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections