<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>3 Aug 2017 13:36:00 Z</lastBuildDate><pubDate>2 Aug 2017 21:30:00 Z</pubDate><description>Hello&#13;
&#13;
Starting from an example published on:&#13;
http://windevapi.free.fr/forum1.php?idr=7&amp;ids=145&amp;pagea=2&#13;
&#13;
&#13;
I'm trying to reduce the size of images loaded and saved on a longblob field in a table of a MySql database.&#13;
&#13;
This is the portion of code :&#13;
PROCEDURE ReduceSize(InFileName, OutFileName, Quality) wiaFormatJPEG is string ="B96B3CAE-0728-11D3-9D7B-0000F81EF32E}" oFichierImage is object Automation dynamic oProcessImage is object Automation dynamic oFichierImage = new object Automation "WIA.ImageFile" oProcessImage = new object Automation "WIA.ImageProcess" oFichierImage&gt;&gt;LoadFile(InFileName) oProcessImage&gt;&gt;Filters&gt;&gt;Add(oProcessImage&gt;&gt;FilterInfos("Convert")&gt;&gt;FilterID) oProcessImage&gt;&gt;Filters(1)&gt;&gt;Properties("FormatID")&gt;&gt;Value = wiaFormatJPEG &lt;&lt;&lt;&lt; The problem is here oProcessImage&gt;&gt;Filters(1)&gt;&gt;Properties("Quality")&gt;&gt;Value = Quality oFichierImage = oProcessImage&gt;&gt;Apply(oFichierImage) oFichierImage&gt;&gt;SaveFile(OutFileName)&#13;
This is the error code i see when the routine is executed:&#13;
&#13;
Error at line 29 of Local Procedure ReduceSize process.&#13;
Access to Value Automation member.&#13;
Erreur 80210065 : Formato dell'ID non valido.&#13;
Erreur 80210065 : Formato dell'ID non valido.&#13;
&#13;
&#13;
&#13;
Please, can someone tell me where is the problem??&#13;
&#13;
Thanks in advance&#13;
&#13;
Gianni</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62065-convert-jpeg-image-quality-and-size/read.awp</link><title>[WD] Convert JPEG image quality (and size)</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62065-convert-jpeg-image-quality-and-size-62074/read.awp</comments><pubDate>3 Aug 2017 13:36:00 Z</pubDate><description>Hi Gianni,&#13;
&#13;
I don't know about this example at all, and I don't care to learn, as you can achieve what you want in about 2 lin…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62065-convert-jpeg-image-quality-and-size-62074/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62065-convert-jpeg-image-quality-and-size-62074/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/62065-convert-jpeg-image-quality-and-size/read.awp">[WD] Convert JPEG image quality (and size)</source><title>Re: [WD] Convert JPEG image quality (and size)</title></item></channel></rss>
