2025-03-27
| ||
08:26 | • Ticket [1441f860] RFE: image command : check to see if a format is supported. status still Open with 5 other changes artifact: cb32adc5 user: oehhar | |
2024-04-22
| ||
18:49 | • Ticket [1441f860]: 3 changes artifact: 846e3b57 user: fvogel | |
06:50 | • Ticket [1441f860]: 4 changes artifact: 07e7eb13 user: oehhar | |
2024-04-21
| ||
12:45 | • Ticket [1441f860]: 3 changes artifact: 9fca93ed user: fvogel | |
2021-06-11
| ||
15:12 | • Ticket [1441f860]: 4 changes artifact: b057ef5b user: oehhar | |
2021-06-10
| ||
19:45 | • Ticket [1441f860]: 3 changes artifact: aff72988 user: bll | |
19:36 | • Ticket [1441f860]: 3 changes artifact: 001bbd4d user: bll | |
15:14 | • Ticket [1441f860]: 4 changes artifact: 92afb58c user: oehhar | |
12:19 | • New ticket [1441f860]. artifact: 85d7e260 user: bll | |
Ticket UUID: | 1441f860c43324943777eca4ad37e6480522bd3a | |||
Title: | RFE: image command : check to see if a format is supported. | |||
Type: | RFE | Version: | 8.7 | |
Submitter: | bll | Created on: | 2021-06-10 12:19:51 | |
Subsystem: | 41. Photo Images | Assigned To: | nobody | |
Priority: | 5 Medium | Severity: | Minor | |
Status: | Open | Last Modified: | 2025-03-27 08:26:32 | |
Resolution: | Accepted | Closed By: | nobody | |
Closed on: | ||||
Description: |
It would be nice to be able to do: image issupported -format svg ; # or somesuch And get a return code or throw an error. Current code looks like: set vars(have.tksvg) false try { set ti [image create photo -data {<svg></svg>} -format svg] image delete $ti set vars(have.tksvg) true } on error {err res} { lassign [dict get $res -errorcode] a b c d if { $c ne "PHOTO_FORMAT" } { set vars(have.tksvg) true } } | |||
User Comments: |
oehhar added on 2025-03-27 08:26:32:
This ticket is now processed as TIP714 https://core.tcl-lang.org/tips/doc/trunk/tip/714.md. The implementation branch is tip-714-image-driver-info with current head [7da58a06]. Thanks for all, Harald fvogel added on 2024-04-22 18:49:31: I didn't assign this to me. I have just changed the "Subsystem" class... oehhar added on 2024-04-22 06:50:25: Dear Francois, thank you for assigning this RFE to you. I have lost it out of sight. I may care after the release of Tk 9.0, so in August 2024. Thank you for all the work, Harald oehhar added on 2021-06-11 15:12:44: Christian Werner posted on the core list to a similar subject: image types -> photo bitmap image types photo -> wrong # args ... make "image types photo" report the photos supported, make "image types bitmap" report what corresponds best, make "image types something" report an error if "something" is no known image type. oehhar added on 2021-06-10 15:14:21: Thank you, the point was already discussed and I like it. It is the exposure of an internal data structure, so a relatively low-hanging fruit. In addition, there might be capabilities exposed like: - file writable - data output (base64 or binary ;-) ) Thank you, Harald |