On 6/17/2023 12:33 PM, Manfred Stelzhammer wrote:
HelloWhen I run a 64 bit tcl I see:
I have a Problem with tclfpdf.
I try to insert a picture.
% tclfpdf::Image [pwd]/logo.gif 30 30
The first error:
"can't read "::env(PROCESSOR_ARCHITECTURE)": no such variable"
I solved it with: "set ::env(PROCESSOR_ARCHITECTURE) 64"
The second error:
"can't read "a": no such variable"
Who can I solved this problem?
regards
manfred
env(PROCESSOR_ARCHITECTURE) = AMD64
32 bit:
env(PROCESSOR_ARCHITECTURE) = x86
System wide, it's set to AMD64, not sure how it shows up as X86 when
running a 32 bit tclkit.
Hello
I have a Problem with tclfpdf.
I try to insert a picture.
% tclfpdf::Image [pwd]/logo.gif 30 30
The first error:
"can't read "::env(PROCESSOR_ARCHITECTURE)": no such variable"
I solved it with: "set ::env(PROCESSOR_ARCHITECTURE) 64"
The second error:
"can't read "a": no such variable"
Who can I solved this problem?
regards
manfred
On 6/17/2023 2:10 PM, et99 wrote:
On 6/17/2023 12:33 PM, Manfred Stelzhammer wrote:Forgot to mention, this is on my windows 10 system.
HelloWhen I run a 64 bit tcl I see:
I have a Problem with tclfpdf.
I try to insert a picture.
% tclfpdf::Image [pwd]/logo.gif 30 30
The first error:
"can't read "::env(PROCESSOR_ARCHITECTURE)": no such variable"
I solved it with: "set ::env(PROCESSOR_ARCHITECTURE) 64"
The second error:
"can't read "a": no such variable"
Who can I solved this problem?
regards
manfred
env(PROCESSOR_ARCHITECTURE) = AMD64
32 bit:
env(PROCESSOR_ARCHITECTURE) = x86
System wide, it's set to AMD64, not sure how it shows up as X86 when
running a 32 bit tclkit.
Hi
I use kubuntu.
With .jpeg and .jpg it works.
But .png and .gif it unfortunately doesn't work.
Regards
Manfred
Am 17.06.23 um 23:12 schrieb et99:
On 6/17/2023 2:10 PM, et99 wrote:
On 6/17/2023 12:33 PM, Manfred Stelzhammer wrote:Forgot to mention, this is on my windows 10 system.
HelloWhen I run a 64 bit tcl I see:
I have a Problem with tclfpdf.
I try to insert a picture.
% tclfpdf::Image [pwd]/logo.gif 30 30
The first error:
"can't read "::env(PROCESSOR_ARCHITECTURE)": no such variable"
I solved it with: "set ::env(PROCESSOR_ARCHITECTURE) 64"
The second error:
"can't read "a": no such variable"
Who can I solved this problem?
regards
manfred
env(PROCESSOR_ARCHITECTURE) = AMD64
32 bit:
env(PROCESSOR_ARCHITECTURE) = x86
System wide, it's set to AMD64, not sure how it shows up as X86 when
running a 32 bit tclkit.
On 6/18/2023 3:20 AM, Manfred Stelzhammer wrote:
Hi
I use kubuntu.
With .jpeg and .jpg it works.
But .png and .gif it unfortunately doesn't work.
Regards
Manfred
Am 17.06.23 um 23:12 schrieb et99:
On 6/17/2023 2:10 PM, et99 wrote:
On 6/17/2023 12:33 PM, Manfred Stelzhammer wrote:Forgot to mention, this is on my windows 10 system.
HelloWhen I run a 64 bit tcl I see:
I have a Problem with tclfpdf.
I try to insert a picture.
% tclfpdf::Image [pwd]/logo.gif 30 30
The first error:
"can't read "::env(PROCESSOR_ARCHITECTURE)": no such variable"
I solved it with: "set ::env(PROCESSOR_ARCHITECTURE) 64"
The second error:
"can't read "a": no such variable"
Who can I solved this problem?
regards
manfred
env(PROCESSOR_ARCHITECTURE) = AMD64
32 bit:
env(PROCESSOR_ARCHITECTURE) = x86
System wide, it's set to AMD64, not sure how it shows up as X86 when
running a 32 bit tclkit.
Are you trying to use the file logo.gif in the examples folder?
That file is interlaced. Try converting it to non-interlaced.
Check if your .png files are interlaced as well.
Internally the code converts a .gif to a .png. On my 8.6.9 32 bit tcl/tk
it creates an interlaced .png and gets an error saying interlaced
not supported.
On my 8.6.12 and 8.6.13 64 bit tcl/tk it converts it to a non-interlaced
.png and
it works.
I don't know if its 32 vs 64 or the version of Tk that makes the
difference.
Hi
I think, I make a workaround.
I convert the file to a jpeg, and after the tclfpdf::Image command I delete the temporary file.
proc convert-to-jpeg {file} {
image create photo _tempimage
_tempimage read $file
_tempimage write mytempfile[file tail [file rootname $file]].jpeg
return mytempfile[file tail [file rootname $file]].jpeg
}
set mytempimage [convert-to-jpeg image.gif]
tclfpdf::Image $mytempimage 30 30
file delete $mytempimage
regards
Manfred
Am 18.06.23 um 14:00 schrieb et99:
On 6/18/2023 3:20 AM, Manfred Stelzhammer wrote:
Hi
I use kubuntu.
With .jpeg and .jpg it works.
But .png and .gif it unfortunately doesn't work.
Regards
Manfred
Am 17.06.23 um 23:12 schrieb et99:
On 6/17/2023 2:10 PM, et99 wrote:
On 6/17/2023 12:33 PM, Manfred Stelzhammer wrote:Forgot to mention, this is on my windows 10 system.
HelloWhen I run a 64 bit tcl I see:
I have a Problem with tclfpdf.
I try to insert a picture.
% tclfpdf::Image [pwd]/logo.gif 30 30
The first error:
"can't read "::env(PROCESSOR_ARCHITECTURE)": no such variable" >>>>>>
I solved it with: "set ::env(PROCESSOR_ARCHITECTURE) 64"
The second error:
"can't read "a": no such variable"
Who can I solved this problem?
regards
manfred
env(PROCESSOR_ARCHITECTURE) = AMD64
32 bit:
env(PROCESSOR_ARCHITECTURE) = x86
System wide, it's set to AMD64, not sure how it shows up as X86 when >>>>> running a 32 bit tclkit.
Are you trying to use the file logo.gif in the examples folder?
That file is interlaced. Try converting it to non-interlaced.
Check if your .png files are interlaced as well.
Internally the code converts a .gif to a .png. On my 8.6.9 32 bit tcl/tk
it creates an interlaced .png and gets an error saying interlaced
not supported.
On my 8.6.12 and 8.6.13 64 bit tcl/tk it converts it to a non-interlaced .png and
it works.
I don't know if its 32 vs 64 or the version of Tk that makes the difference. >>
* Manfred Stelzhammer <[email protected]>
| proc convert-to-jpeg {file} {
| image create photo _tempimage
| _tempimage read $file
| _tempimage write mytempfile[file tail [file rootname $file]].jpeg
You need to delete the _tempimage here before returning, otherwise you
have a memory leak - albeit a small one.
R'
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 156:18:58 |
| Calls: | 12,093 |
| Calls today: | 1 |
| Files: | 15,000 |
| Messages: | 6,517,729 |