could the image be off center in theumb nail?
On Fri, 20 Sep 2019 14:17:57 -0500, David Ringsmuth via 4D_Tech wrote:
> Narinder,
>
> Thanks for asking that question.
>
> CONVERT PICTURE($Photo_g;".jpg")
>
> PICTURE TO BLOB($Photo_g;$Pict_x;".jpg")
> BLOB TO PICTURE($Pict_x;$Pict_JPG_g)
>
> The new, converted picture size is a couple hundred octets, no longer
> 244 Ko’s.
>
> It appears either as an entire transparent background or a blank picture.
>
> Paint.net saves a JPG in 34 KB form 244 KB.
>
> I suspect the PNG is compressed somehow and not correctly convertible.
>
> David Ringsmuth
>
> From: Narinder Chandi via 4D_Tech
> Sent: Friday, September 20, 2019 12:35 PM
> To: 4D Tech Mailing List
> Cc: Narinder Chandi
> Subject: Re: Picture Reduction / Conversion (2)
>
> David,
>
> When you say that the "result is an empty picture", does the
> resulting picture have any bytes and/or dimensions, i.e. did you try
> checking it with Picture size and PICTURE PROPERTIES commands?
>
> I wonder if the issue is with the parameters that you are passing to
> the CREATE THUMBNAIL command? But then again, I am sure you must
> have double and triple checked that...
>
> Regards,
>
> Narinder Chandi,
> ToolBox Systems Ltd.
>
> I am available for new consulting opportunities…
> http://4d.1045681.n5.nabble.com/ANN-4D-Developer-Available-td5765443.html
> --
>
> -----Original Message-----
> From: 4D_Tech <[email protected]> on behalf of 4D Tech
> Mailing List <[email protected]>
> Reply-To: 4D Tech Mailing List <[email protected]>
> Date: Friday, 20 September 2019 at 18:27
> To: 4D Tech Mailing List <[email protected]>
> Cc: David Ringsmuth <[email protected]>
> Subject: Picture Reduction / Conversion (2)
>
> 4D v17.4 234574
> Windows 10 Home
>
> Using Paint.net to open the PNG and save it as a JPG works fine.
>
> The resulting JGP is perfect.
>
> David Ringsmuth
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive: http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
>
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive: http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
>
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive: http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub: mailto:[email protected]
> **********************************************************************
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive: http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************