summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/cmd/jpg/tga.c5
-rw-r--r--sys/src/cmd/page.c2
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/src/cmd/jpg/tga.c b/sys/src/cmd/jpg/tga.c
index f4f729d17..940d76d88 100644
--- a/sys/src/cmd/jpg/tga.c
+++ b/sys/src/cmd/jpg/tga.c
@@ -154,9 +154,10 @@ show(int fd, char *name)
if(outchan == CMAP8)
c = torgbv(r, !eflag);
else{
- if(outchan==GREY8 || (r->chandesc==CY && threeflag==0))
+ if(outchan==GREY8 || (r->chandesc==CY && threeflag==0)){
c = totruecolor(r, CY);
- else
+ outchan = GREY8;
+ }else
c = totruecolor(r, CRGB24);
}
if(c == nil){
diff --git a/sys/src/cmd/page.c b/sys/src/cmd/page.c
index 7e040f31c..c7170cc3e 100644
--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -294,7 +294,7 @@ popenimg(Page *p)
if(strcmp(p->ext, "ico") == 0)
snprint(nam, sizeof(nam), "%s -c", p->ext);
else
- snprint(nam, sizeof(nam), "%s -t39", p->ext);
+ snprint(nam, sizeof(nam), "%s -t9", p->ext);
pipeline(fd, "%s", nam);
}