[gs-bugs] [Bug 691496] New: How to reduce image size?
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Sat Jul 24 23:16:40 UTC 2010
http://bugs.ghostscript.com/show_bug.cgi?id=691496
Summary: How to reduce image size?
Product: MuPDF
Version: unspecified
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P4
Component: mupdf
AssignedTo: tor.andersson at artifex.com
ReportedBy: akay at 21cn.com
QAContact: gs-bugs at ghostscript.com
Estimated Hours: 0.0
Hi,I don't know where to ask question,so I posted it as a bug,sorry.
When use mupdf to read the large image,it will use a lot of memory.
I want to reduce the image size to reduce the memory use.
How to do?
In the pdf_interpret.c
else if (!strcmp(fz_toname(subtype), "Image"))
{
if ((csi->dev->hints & FZ_IGNOREIMAGE) == 0)
{
pdf_image *img;
error = pdf_loadimage(&img, csi->xref, rdb, obj);
if (error)
return fz_rethrow(error, "cannot load image (%d %d R)",
fz_tonum(obj), fz_togen(obj));
pdf_showimage(csi, img);
pdf_dropimage(img);
}
}
After pdf_loadimage,and before pdf_showimage,I want to add some code to reduce
the image size,Can you tell me how to do?
Thank you very much.
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list