RE: Picture Reduction / Conversion (2)

2019-09-20 Thread David Ringsmuth via 4D_Tech
Narinder,

Re: “did you try to re-saving the source PNG image using an external program”

Yes, resaving the PNG using Paint.net made the PNG convert-able to JPG.

Good suggestion!

I’m guessing the original PNG is a camera photo, and non-standard in some way.

Bug 4D does not handle it like Paint.net….

David Ringsmuth

From: Narinder Chandi via 4D_Tech
Sent: Friday, September 20, 2019 2:57 PM
To: 4D iNug Technical
Cc: Narinder Chandi
Subject: Re: Picture Reduction / Conversion (2)

David,

Hmm... tricky one to try and troubleshoot over the list. Picking up on your 
point about trying with Paint.net, did you try to re-saving the source PNG 
image using an external program, also tweaking the compression or other 
parameters of the PNG (assuming that is possible...) and then trying to CREATE 
THUMBNAIL from that? It might help you to narrow down whether the issue is 
internal compression or not?

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: David Ringsmuth 
Date: Friday, 20 September 2019 at 20:17
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: RE: Picture Reduction / Conversion (2)

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 <mailto:4d_tech@lists.4d.com>
Sent: Friday, September 20, 2019 12:35 PM
To: 4D Tech Mailing List <mailto:4d_tech@lists.4d.com>
Cc: Narinder Chandi <mailto:4dtechmailingl...@toolbox.uk.com>
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 <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing 
List <4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Friday, 20 September 2019 at 18:27
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: David Ringsmuth 
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:4d_tech-unsubscr...@lists.4d.com
**
 
 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
 


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Picture Reduction / Conversion (2)

2019-09-20 Thread David Ringsmuth via 4D_Tech
Chip,

When I view the 4D converted, saved to disk image, outside 4D, it appears 
either with transparent everything, or a plain-nothing background.

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:4d_tech-unsubscr...@lists.4d.com
**

RE: Picture Reduction / Conversion (2)

2019-09-20 Thread Chip Scheide via 4D_Tech
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 <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech 
> Mailing List <4d_tech@lists.4d.com>
> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
> Date: Friday, 20 September 2019 at 18:27
> To: 4D Tech Mailing List <4d_tech@lists.4d.com>
> Cc: David Ringsmuth 
> 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:4d_tech-unsubscr...@lists.4d.com
> **
> 
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
---
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:4d_tech-unsubscr...@lists.4d.com
**

Re: Picture Reduction / Conversion (2)

2019-09-20 Thread Narinder Chandi via 4D_Tech
David,

Hmm... tricky one to try and troubleshoot over the list. Picking up on your 
point about trying with Paint.net, did you try to re-saving the source PNG 
image using an external program, also tweaking the compression or other 
parameters of the PNG (assuming that is possible...) and then trying to CREATE 
THUMBNAIL from that? It might help you to narrow down whether the issue is 
internal compression or not?

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: David Ringsmuth 
Date: Friday, 20 September 2019 at 20:17
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com>
Subject: RE: Picture Reduction / Conversion (2)

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 <mailto:4d_tech@lists.4d.com>
Sent: Friday, September 20, 2019 12:35 PM
To: 4D Tech Mailing List <mailto:4d_tech@lists.4d.com>
Cc: Narinder Chandi <mailto:4dtechmailingl...@toolbox.uk.com>
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 <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing 
List <4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Friday, 20 September 2019 at 18:27
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: David Ringsmuth 
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:4d_tech-unsubscr...@lists.4d.com
**
 
 
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**
 


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: Picture Reduction / Conversion (2)

2019-09-20 Thread David Ringsmuth via 4D_Tech
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 <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List 
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Friday, 20 September 2019 at 18:27
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: David Ringsmuth 
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:4d_tech-unsubscr...@lists.4d.com
**


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Picture Reduction / Conversion (2)

2019-09-20 Thread Narinder Chandi via 4D_Tech
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 <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List 
<4d_tech@lists.4d.com>
Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Date: Friday, 20 September 2019 at 18:27
To: 4D Tech Mailing List <4d_tech@lists.4d.com>
Cc: David Ringsmuth 
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:4d_tech-unsubscr...@lists.4d.com
**


**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**