{"version":"2.1.248","anchor":"image-and-pdf-read-limits-are-now-explicit-profiles","canonical_anchor":"image-and-pdf-read-limits-are-now-explicit-profiles","heading":"Image and PDF read limits are now explicit profiles","tier":"internal","area":"File Reading","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248\/e\/image-and-pdf-read-limits-are-now-explicit-profiles","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.248","markdown":"### Image and PDF read limits are now explicit profiles\n\nImage and PDF read limits are now fixed profiles: 3 PDF pages, images downscaled to 2000x2000.\n\n**What**\n\nLimits on reading images and PDFs are collected into named profiles, chosen by a switch between session and default settings. Raw images are capped at 307200 bytes, a PDF read covers at most 3 pages, and oversized images are downscaled to fit 2000x2000 and 5242880 bytes of encoded data.\n\n**Details**\n\n- The whole-PDF read budget in one profile is 0 bytes, so PDFs go through the per-page path rather than being read in full.\n- Which profile applies is decided per session rather than globally.\n\n**Evidence**\n\n`pdfMaxPagesPerRead`\n\n- Area: File Reading\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 2\/5"}