summaryrefslogtreecommitdiff
path: root/sys/src/cmd/jpg
AgeCommit message (Collapse)Author
2022-09-26togif: fix a typo - don't free the same image we're going to useSigrid Solveig Haflínudóttir
2020-12-15ico: avoid potential nil pointer dereferencesAlex Musolino
Bgeticon can fail, leaving the Icon img pointers nil.
2020-12-15ico: fix interpretation of 0 widths/heightsAlex Musolino
2020-10-31jpg: treat EOF as EOI markerAlex Musolino
Some jpegs, rightly or wrongly, do not contain an EOI marker. This causes jpg(1) to bail out even after correctly parsing the entire image.
2020-09-01png: remove bogus chanlen warningAlex Musolino
2016-11-17cmd: remove a bit of unused stuffftrvxmtrx
2016-10-22gif: just read and decode the first image when -9 or -c flag is specifiedcinap_lenrek
2016-06-10togif: -E flag to read animation from stdinaiju
2016-05-16jpg: output partial image data when available (truncated files)cinap_lenrek
2016-04-06jpg: fd == 0 is valid, so don't ignore itBurnZeZ
2016-01-07format pointer subtraction results with %zd instead of %ld (for long -> ↵cinap_lenrek
intptr on amd64)
2015-08-01jpg/ico: fix mkfilecinap_lenrek
2015-07-31jpg/ico: support for embedded png iconscinap_lenrek
2015-03-11gif: fix color table clipping (for cb5.gif)cinap_lenrek
2015-02-23jpg: handle progressive non-interleaved modecinap_lenrek
2014-12-14png: fail on invalid bpcftrvxmtrx
2014-12-13various cmds: replace magic numbers with Kdel/Keof, etcftrvxmtrx
2014-11-07fix dangerous werrstr() usagescinap_lenrek
werrstr() takes a format string as its first argument. a common error is to pass user controlled string buffers into werrstr() that might contain format string escapes causing werrstr() to take bogus arguments from the stack and crash. so instead of doing: werrstr(buf); we want todo: werrstr("%s", buf); or if we have a local ERRMAX sized buffer that we can override: errstr(buf, sizeof buf);
2014-02-08jpg: center image in screencinap_lenrek
when using the jpg(1) programs interactively, draw the image in the center of it. this avoids wasting space with always on borders on small windows and looks better when used in fullscreen.
2013-12-07gif: remove warning when animated gif is rendered to bitmapcinap_lenrek
2013-10-26mkfiles: do not rely on path containing the . elementcinap_lenrek
when executing generated binaries and helper scripts, always execute them as ./name instead of relying that path contsins the dot.
2013-08-31jpg(1), jpg: add -y flag to usageppatience0
png: colorspace will never be CYCbCr (this is no doubt from copy-pasting from jpg) tif: everyone else uses colorspace as a function argument, so we will too readtif, writetif: credit paul bourke
2013-07-21readtif, writetif: remove multiplication in inner loops of predict functionsppatience0
2013-07-20readtif: simplify rounding in other placesppatience0
2013-07-20readtif, writetif: simplify roundingppatience0
2013-07-20readtif: if getbit returns less than 0 during eol fill bits, return earlyppatience0
2013-07-20readtif, writetif: prevent buffer overflows in some corner casesppatience0
2013-07-20tojpg, totif: change flags to better match those of the decodersppatience0
2013-07-19readtif: fix many bugsppatience0
totif: add tiff encoder
2013-07-19writejpg: the call to Bflush() is unnecessary; free data before exiting in ↵ppatience0
case of malloc error writeppm: do not print a space after the last pixel
2013-07-03tif: initialize max to one instead of zero for palette rescaling in case all ↵ppatience0
values are zero.
2013-07-03tif: rescale palette color map to [0, 255]ppatience0
2013-07-02tif: add tiff decoderppatience0
2013-06-01readgif, readjpg: fix incorrect malloc arguments: use sizeof(Rawimage*) ↵ppatience0
instead of sizeof(Rawimage**) and 2*sizeof(Rawimage*) instead of sizeof(Header) readtga: switch calloc arguments: nelem is supposed to first, elsize second
2013-05-27tojpg: GREY[1248] images should be grayscaleppatience0
2013-05-26tojpg: add jpeg encoderppatience0
2013-05-12toppm: no need to initialize errppatience0
2013-05-12toppm: checking for err is useless; it was initialized to nil earlierppatience0
2013-05-12toppm: multichan converts to RGB24, not RGBVppatience0
2013-05-12writeppm: replace WriteGIF by WritePPMppatience0
2013-05-13writeppm: simplifycinap_lenrek
2013-05-12writeppm: for bitmaps, 1 is black, 0 is whiteppatience0
2013-05-12toppm: fix styleppatience0
2013-05-12toppm: add -r flag for raw ppmppatience0
2013-05-12writeppm: fix tab/spacescinap_lenrek
2013-05-12file: recognize bitmap and graymap ppm imagesppatience0
writeppm: do not print extra space after each pixel for graymap formats to save space
2013-01-25mergecinap_lenrek
2013-01-25jpg: check read count when reading png magic (harmless)cinap_lenrek
2013-01-24tga, file: 15-bit tga imagesftrvxmtrx
2013-01-22tga: fix flip/reflectftrvxmtrx