JPG IMAGE QUALITY . . .
2020-11-17-152010
All --
I am writing a writing an APP that saves large images in JPG IMAGE FILES. I would like save the JPG IMAGE FILES using a QUALITY of 50. Here is the equivalent from the USER INTERFACE.

How do I do this with CODE?
Thanks.
-- Matt
0
Answers
-
2020-11-18-161038All --I am about to open up the CODE and make some modifications.Is there a CODE DRIVEN way to save a JPG IMAGE with QUALITY = 50?I have dug through the HELP FILES but do not see anything helpful.Thanks.-- Matt0
-
Hi Matt,
Here is a macro that will do that for you, you will need a reference MediaCy.IQL.IO.dll.Public Sub SaveJpg Dim image1 As McImage With Application.DocumentCommands.ActiveImage(Nothing) .Run(image1) End With image1.File.Format="jpg" image1.File.Attributes("CompressionQuality") = 50 image1.SaveAs(ThisApplication.Path(mcPathType.mcptWritableImages) & "test.jpg") End Sub
0 -
2020-11-19-122412Pierre --Super.Thanks.-- Matt
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions