Commit graph imagey/src/utils.rs
Author SHA1 Message Date
f4241b9711
refactor: use iced 0.15 rich clipboard
it does use arboard internally,
but it's nicer to use stuff built into iced
instead of dealing with the Clipboard object ourselves.
2026-08-28 12:31:20 -07:00
95a24fa987
refactor: use Cow<str> for errors
since some errors are just string literals;
this lets us avoid allocating a new string
2026-08-25 09:37:00 -07:00
a87a7bc0a1
feat: svg support 2026-08-14 10:25:46 -07:00
e57c1c9322
fix: jxls being rotated twice 2026-08-01 10:22:41 -07:00
cb5e1d837a
feat: image copy and paste 2026-07-31 20:08:58 -07:00
18de039e77
feat: make pickers async 2026-07-31 15:53:11 -07:00
9d4e24e809
refactor: apply clippy lints
cargo clippy --no-deps -- --deny clippy::nursery --deny clippy::pedantic
(does not quite pass due to unused `&self` in State::subscription)
I am considering ignoring events when the file picker is opened,
but that isn't a very nice solution (should just make it async atp)
2026-07-31 14:39:18 -07:00
e98f268e59
refactor: do not format each ImageError
this makes the code much nicer,
but also it reduces the amount of extra fluff in the error messages.
2026-07-31 09:51:57 -07:00
973703726f
feat: guess format from magic numbers as well
this allows opening files with extensions that don't match the filetype
2026-07-31 09:16:38 -07:00
101adc7a89
refactor: split kra (krita) logic into image hook
may further split this into its own crate;
seems quite useful! (albeit somewhat short and easy)

since there aren't any runtime dependancies,
it could even go into image-extras maybe
2026-07-30 23:40:14 -07:00
fc92ff60e0
feat: kra (krita) support 2026-07-30 22:41:17 -07:00
7ce87e2870
feat: optional infobar
literally the title; except on the bottom
2026-07-30 20:17:21 -07:00
5a83fe39e9
feat: switch to pure-rust jxl decoder
this makes the logic drastically simpler;
as it comes with image crate integration.

however, images can no longer be saved as JXL with this version
(as jxl-oxide is decoder-only)
2026-07-29 16:11:35 -07:00
ab24e5f10d
refactor: use Result with a unit type over Option
this helps convey intent, and makes it more consistent
2026-07-09 20:58:44 -07:00
d577fe2e76
refactor: move image logic to utils 2026-07-09 20:48:34 -07:00