Bug 691496 - How to reduce image size?
Summary: How to reduce image size?
Status: RESOLVED WONTFIX
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P4 normal
Assignee: Tor Andersson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-24 23:16 UTC by akay
Modified: 2010-07-28 13:32 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.