Files
Nexus/2023/scripts/animation_tools/mgpicker/MGPicker_Help/English/mgimageprocesser.htm
2025-11-23 23:31:18 +08:00

248 lines
24 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>MGImageProcesser Command</title>
<meta name="generator" content="Help &amp; Manual" />
<meta name="keywords" content="API,ImageProcesser,MGImageProcessercommand" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link type="text/css" href="default.css" rel="stylesheet" />
<style type="text/css">
body { margin: 0px; background: #F8F8F8; }
</style>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="helpman_settings.js"></script>
<script type="text/javascript" src="helpman_topicinit.js"></script>
<script type="text/javascript">
HMSyncTOC("index.html", "mgimageprocesser.htm");
</script>
<script type="text/javascript" src="highlight.js"></script>
<script type="text/javascript">
$(document).ready(function(){highlight();});
</script>
</head>
<body>
<table style="width:100%; border:none; border-spacing:0px; padding:0px; background:#D0D0D0">
<tr style="vertical-align:middle">
<td style="text-align:right">
<a href="welcome.htm"><img border="0" src="../common/images/MGtoolsHelp_Home.gif" width="34" height="22" alt="Home" /></a>&nbsp;
<a href="mgpickerlicence.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
<a href="commandbuttonpresets.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a>
</td>
</tr>
</table>
<!-- Placeholder for topic body. -->
<table style="width:100%;border:none;border-spacing:0px"><tr style="vertical-align:top"><td style="text-align:left;padding:5px">
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:middle; height:8px; padding:1px; border:none"><p><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">command</span><span style="font-family: 'Times New Roman',Times,Georgia,serif;"> (MEL/Python)</span></p>
</td>
</tr>
<tr>
<td style="vertical-align:middle; height:5px; padding:1px; border:none"><h1 class="p_Heading1" style="margin: 19px 0 19px 0;"><span class="f_Heading1" style="font-size: 24pt; font-family: 'Times New Roman',Times,Georgia,serif;">MGImageProcesser</span></h1>
</td>
</tr>
</table>
</div>
<p class="p_Normal" style="margin: 14px 0 0 0;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Go to: <a href="mgimageprocesser.htm#synopsis" class="topiclink">Synopsis</a>. <a href="mgimageprocesser.htm#examples" class="topiclink">MEL examples</a>. <a href="mgimageprocesser.htm#pyexamples" class="topiclink">Python examples</a>.</span></p>
<p class="p_Normal" style="margin: 19px 0 0 0;"><a id="synopsis" class="hmanchor"></a><span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;"> Synopsis</span></p>
<p class="p_Normal" style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">MGImageProcesser (string, [<a href="mgimageprocesser.htm#dimension" class="topiclink">currentStyleName</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgimageprocesser.htm#dimension" class="topiclink">dimension</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">boolean</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgimageprocesser.htm#processoption" class="topiclink">processOption</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="https://www.helpandmanual.com/order.html" class="topiclink">resize</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">], [<a href="mgimageprocesser.htm#style" class="topiclink">style</a>=</span><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span><span style="font-family: 'Courier New',Courier,monospace;">])</span></p>
<p class="p_Normal" style="margin: 0 0 14px 0;"><span style="font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">Note: Strings representing image fullpath &nbsp;and arguments must be separated by commas. This is not depicted in the synopsis.</span></p>
<p class="p_Normal" style="margin: 14px 0 14px 0;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">MGImageProcesser is </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">NOT undoable</span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">, </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">queryable, and editable.</span></p>
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This command process images.</span></p>
<p class="p_Normal">&nbsp;</p>
<div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Long name (short name)</span></p>
</td>
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic; font-weight: bold;">Argument types</span></p>
</td>
<td style="vertical-align:bottom; background-color:#CCCCCC; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Properties</span></p>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="currentstylename" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-currentStyleName</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-csn</span><span style="font-family: 'Courier New',Courier,monospace;">)</span><img alt="v2_transparent" width="34" height="12" style="margin:0;width:34px;height:12px;border:none" src="v2_transparent.png"/></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="color: #000000;">&nbsp;</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Internal use only. This is a query only flag to get the current image processing config name. </span></p>
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Do not confuse the term &quot;style&quot; with the new picker style, this is just for snapshot image processing style.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="dimension" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-dimension</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-d</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="color: #000000;">&nbsp;</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="query" title="query" width="13" height="16" style="margin:2px 2px 2px 2px;width:13px;height:16px;border:none" src="query.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">This is a query only flag that can be used to query for the size of an image as int array, by providing a image file path.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="processoption" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-processOption</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-po</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Process the image using the process option string, the option is of the &quot;optionName = optionValue&quot; format, one option for a line, joined with new line character '\n'. For example:</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">invert = 0</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">grayscale = 1</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">brightness = 0</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">contrast = 0</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">saturation = 0</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">blur = 0</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">opacity = 255</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">bgcolor = 0,0,0</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">hTile = 1</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">hTileGap = 0</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">vTile = 1</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">vTileGap = 0</span></p>
<p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">The case for the option name does not matter. The value range for a certain option:</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">invert: [0~1]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">grayscale: [0~1]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">brightness: [-255,255]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">contrast: [-255,255]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">saturation: [-255,255]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">blur: [0~18]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">opacity: [0~255]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">bgcolor: [0~255,0~255,0~255]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">hTile: [0~10]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">hTileGap: [0~100]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">vTile: [0~10]</span></p>
<p style="margin: 0 0 0 24px;"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif; font-style: italic;">vTileGap: [0~100]</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="resize" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-resize</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-r</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:942px; padding:1px; border:none"><p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Resize the image file using the new size provided by string argument: &quot;width:height&quot;. The width / height ratio of image will stay unchanged.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><a id="style" class="hmanchor"></a><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-style</span><span style="font-family: 'Courier New',Courier,monospace;">(</span><span style="font-family: 'Courier New',Courier,monospace; font-weight: bold;">-s</span><span style="font-family: 'Courier New',Courier,monospace;">)</span></p>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><span style="font-family: 'Courier New',Courier,monospace; font-style: italic;">string</span></p>
</td>
</tr>
</table>
</div>
</td>
<td style="vertical-align:top; background-color:#EEEEEE; padding:1px; border:none"><p><img alt="create" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="create.gif"/><img alt="edit" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="edit.gif"/></p>
</td>
</tr>
<tr>
<td colspan="3" style="vertical-align:middle; padding:1px; border:none"><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 0 0 0 0;"><table style="width:100%; border:none; border-spacing:2px;">
<tr>
<td style="vertical-align:top; width:40px; padding:1px; border:none"><br />
</td>
<td style="vertical-align:middle; width:946px; padding:1px; border:none"><p><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Internal use only. Process the image using a style file. Input a style file full path as the argument.</span></p>
<p class="p_Normal"><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Do not confuse the term &quot;style&quot; with the new picker style, this is just for snapshot image processing style.</span></p>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<p class="p_Normal">&nbsp;</p>
<hr style="height:2px; color:#CCCCCC; border-width:0; background-color:#cccccc;" /><div style="text-align: left; text-indent: 0; padding: 0 0 0 0; margin: 10px 0 0 0;"><table style="background-color:#eeeeee; border:none; border-spacing:1px;">
<tr>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="create" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="create.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Create mode of command</span></p>
</td>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="edit" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="edit.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Edit mode of command</span></p>
</td>
</tr>
<tr>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="query" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="query.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can appear in Query mode of command</span></p>
</td>
<td style="vertical-align:top; padding:4px; border:none"><p><img alt="multiuse" width="13" height="16" style="margin:0;width:13px;height:16px;border:none" src="multiuse.gif"/><span class="f_ImageCaption"> </span><span style="font-size: 12pt; font-family: 'Times New Roman',Times,Georgia,serif;">Flag can be used more than once in a command.</span></p>
</td>
</tr>
</table>
</div>
<p style="margin: 19px 0 0 0;"><a id="examples" class="hmanchor"></a><span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">MEL examples</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">//get&nbsp;the&nbsp;size&nbsp;of&nbsp;image&nbsp;in&nbsp;int&nbsp;array:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">MGImageProcesser&nbsp;-q&nbsp;-dimension&nbsp;&quot;D:/test/Penguins.jpg&quot;;</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">//backup&nbsp;the&nbsp;original&nbsp;image&nbsp;befor&nbsp;process&nbsp;it:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">sysFile&nbsp;-cp&nbsp;&quot;D:/test/Penguins_orginal.jpg&quot;&nbsp;&quot;D:/test/Penguins.jpg&quot;;</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">//now&nbsp;process&nbsp;the&nbsp;image,&nbsp;the&nbsp;image&nbsp;will&nbsp;be&nbsp;changed:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">MGImageProcesser&nbsp;-processOption&nbsp;&quot;grayscale=1\nblur=10&quot;&nbsp;&quot;D:/test/Penguins.jpg&quot;;</span></p>
<p style="margin: 19px 0 0 0;"><a id="pyexamples" class="hmanchor"></a><span style="font-size: 14pt; font-family: 'Times New Roman',Times,Georgia,serif; font-weight: bold;">Python examples</span></p>
<p style="margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">from maya import cmds</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">#get&nbsp;the&nbsp;size&nbsp;of&nbsp;image&nbsp;in&nbsp;int&nbsp;array:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">cmds.MGImageProcesser(&quot;D:/test/Penguins.jpg&quot;,&nbsp;q=True,&nbsp;dimension=True)</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">#backup&nbsp;the&nbsp;original&nbsp;image&nbsp;befor&nbsp;process&nbsp;it:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">cmds.sysFile(&quot;D:/test/Penguins.jpg&quot;,&nbsp;cp=&quot;D:/test/Penguins_orginal.jpg&quot;)</span></p>
<p class="p_Normal" style="line-height: 1.0; white-space: nowrap; margin: 19px 0 0 0;"><span style="font-family: 'Courier New',Courier,monospace;">#now&nbsp;process&nbsp;the&nbsp;image,&nbsp;the&nbsp;image&nbsp;will&nbsp;be&nbsp;changed:</span><br />
<span style="font-family: 'Courier New',Courier,monospace;">cmds.MGImageProcesser(&quot;D:/test/Penguins.jpg&quot;,&nbsp;processOption=&quot;grayscale=1\nblur=10&quot;)</span></p>
</td></tr></table>
<table height="30" width="100%" border="0" cellspacing="" cellpadding="0" bgcolor="#D0D0D0">
<tr valign="bottom" bgcolor="#D0D0D0" >
<td align="left" valign="middle" >
<a href="welcome.htm"><img border="0" src="../common/images/MGtoolsHelp_Home.gif" width="34" height="22" alt="Home" /></a>
<a href="mgpickerlicence.htm"><img border="0" src="../common/images/MGtoolsHelp_previous.gif" width="34" height="22" alt="Previous" /></a>
<a href="commandbuttonpresets.htm"><img border="0" src="../common/images/MGtoolsHelp_next.gif" width="34" height="22" alt="Next" /></a></td>
</tr>
</table>
</body>
</html>