Deutsch English Français Italiano |
<v6gm04$s6vf$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Harald Oehlmann <wortkarg3@yahoo.com> Newsgroups: comp.lang.tcl Subject: Re: Tk 9: image -format svg -scaletowidth not working? Date: Mon, 8 Jul 2024 14:27:54 +0200 Organization: A noiseless patient Spider Lines: 43 Message-ID: <v6gm04$s6vf$1@dont-email.me> References: <MpadnXqNUoFHKxb7nZ2dnZfqnPqdnZ2d@brightview.co.uk> <ygamsmst6xe.fsf@akutech.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 08 Jul 2024 14:27:48 +0200 (CEST) Injection-Info: dont-email.me; posting-host="22e93f4c71d373fba0eeca9a10bbebaf"; logging-data="924655"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yEbu7L3z23NzULYq8xYpE" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:zCfApY7GsSZ9JxNqfwGJadn7r30= Content-Language: en-GB In-Reply-To: <ygamsmst6xe.fsf@akutech.de> Am 08.07.2024 um 14:16 schrieb Ralf Fassel: > * Mark Summerfield <mark@qtrac.eu> > | It fails with this error: >> > | Error in startup script: unknown option "-scaletowidth" > | while executing > | "image create photo -file $svg {*}$opt" > | (procedure "icon" line 3) > | invoked from within > | "icon test.svg 24" > | invoked from within > | "ttk::button .button -command {destroy .} -image [icon test.svg 24]" > | (file "./svgtest2.tcl" line 8) >> > | Can someone tell me what I'm doing wrong? >> > | I'm using Tcl/Tk 9.0b2 on Debian Linux. > > The manpage says: > > Image formats may support sub-options, which are specified using > additional words in the value to the -format option. > > This sounds to me as if you need to specify the additional options like > -scaletowidth *with* the -format option, like so: > > -format [list svg -scaletowidth 24] > > instead of > > -format svg -scaletowidth 24 > > R' Mark, sorry for the odd format. It is always bad, if internals expose on user level. This is an internal issue. There is only the "-format" string which is communicated to the image format driver. Instead of adding something like "driver options", this format string was extended to a list. I would love to change this one day... Thank you for your understanding, Harald