37 Commits

Author SHA1 Message Date
Kovid Goyal af8605dabf bump unicode version to 16 2024-11-10 09:03:52 +05:30
Kovid Goyal 7e7050d30e DRYer 2024-07-23 13:53:02 +05:30
Kovid Goyal cb84f56ef8 Insist on specifying an output format 2024-07-23 13:47:36 +05:30
Kovid Goyal 8201f0dd0e Move caching implementation to Python
Less code, more performant since the cache is used from Python.
And we can make the Go code a pure image format conversion filter.
2024-07-23 13:37:53 +05:30
Kovid Goyal d08dcd92c7 Python wrapper to use image to RGBA Go code 2024-07-22 22:39:12 +05:30
Kovid Goyal fb20c4acb6 Code to convert image at path into cached RGBA data 2024-07-22 21:39:38 +05:30
Kovid Goyal 405f5ce148 Use stdlib maps/slices 2024-06-24 07:54:13 +05:30
Kovid Goyal 55feef8663 Linter fixes 2024-03-22 11:16:02 +05:30
Kovid Goyal 3b74fcb88c switch to a maintained fork of imaging 2024-03-22 10:38:22 +05:30
Kovid Goyal e818f01ff2 Ensure palette is large enough to avoid panics with invalid images that have pixels refering to colors not in the palette 2024-03-22 10:01:20 +05:30
Kovid Goyal e11081ac09 Use exiffix rather than imaging to handle EXIF rotation
exiffix works for more formats than just JPEG
2024-03-22 09:35:39 +05:30
Kovid Goyal 210c417d96 ... 2024-03-06 10:41:39 +05:30
Kovid Goyal 7faf216f9e More linter fixes 2023-09-18 20:59:47 +05:30
Kovid Goyal 5c4efc0fd7 ... 2023-09-14 08:24:43 +05:30
Kovid Goyal 4f72bb9894 Replace utils.Once with stdlib sync.OnceValue 2023-08-09 12:08:42 +05:30
Kovid Goyal 49ea26968c Bump go version to 1.21
Allows us to use the much faster builtin min/max functions
for two variable min/max
2023-08-09 11:58:16 +05:30
Kovid Goyal 341d845b9a Port calls to slices.Sort functions since they now need a cmp() function rather than a less() function
Also rename os.SEEK_* to io.Seek* as the former has been deprecated
2023-08-04 22:50:13 +05:30
Kovid Goyal e59e42a6c2 simplify API of utils.Once 2023-05-26 22:42:07 +05:30
Kovid Goyal d66da811db More work on getting images to display in diff 2023-03-27 07:53:57 +05:30
Kovid Goyal cece795b16 More work on image support for diff 2023-03-27 07:53:57 +05:30
Kovid Goyal 508a61bd1c More work on diffing images 2023-03-27 07:53:57 +05:30
Kovid Goyal c745961f47 Nicer error messages for failure to load with Magick 2023-03-27 07:53:57 +05:30
Kovid Goyal be886f9bf9 Make code for loading images with ImageMagick re-useable 2023-03-27 07:53:57 +05:30
Kovid Goyal 404a775f4b Start work on image support for new diff kitten 2023-03-27 07:53:57 +05:30
Kovid Goyal 1bf911a81b Generate the rowcol diacrticis for Go as well 2023-03-03 14:39:38 +05:30
Kovid Goyal c317c934f3 More work on ImageMagick 2023-01-05 19:15:13 +05:30
Kovid Goyal 7ebb281855 Allow controlling num of CPUs for images operations 2023-01-05 19:15:13 +05:30
Kovid Goyal 458adf967a Dont use extra memory for mirror operations 2023-01-05 19:15:13 +05:30
Kovid Goyal 7c2317d301 Fix divide by zero 2023-01-05 19:15:12 +05:30
Kovid Goyal 4623f580b9 Get 24 bit RGB transmission working 2023-01-05 19:15:12 +05:30
Kovid Goyal 6291d0d400 Code to check if an image is Opaque 2023-01-05 19:15:12 +05:30
Kovid Goyal f9feb4954a Wire up pasting to RGB 2023-01-05 19:15:12 +05:30
Kovid Goyal d192dcb0d7 Code to convert images to NRGB 2023-01-05 19:15:12 +05:30
Kovid Goyal 143fd6e4dd Start work on transmitting RGB images 2023-01-05 19:15:12 +05:30
Kovid Goyal df06578c2d Implement --scale-up and --place 2023-01-05 19:15:12 +05:30
Kovid Goyal 1fa1a478d9 Get --background working 2023-01-05 19:15:12 +05:30
Kovid Goyal e555d963b1 DRYer 2022-12-01 13:58:06 +05:30