Bug 691496

Summary: How to reduce image size?
Product: MuPDF Reporter: akay <akay>
Component: mupdfAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---

Description akay 2010-07-24 23:16:38 UTC
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.
Comment 1 akay 2010-07-28 13:32:38 UTC
won't fix.