Implement a minimum image size for doc formats

Issue #524 new
Robert Leach created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Zoom into a matrix in a document format such as pdf, svg, etc. to a reasonable degree with minimal blurring.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

  1. Export small_133x133.cdt in pdf format with default params (no labels)
  2. Open pdf in a PDF viewer such as preview
  3. Zoom in to a roughly 12x12 tile region

CURRENT BEHAVIOR

Here's what it looks like after step 3. PNG export on the left and PDF on the right:

png_in_and_out_of_preview_exported_pdf.png

EXPECTED BEHAVIOR

The PDF export should not look as minimally blurry as possible (like the PNG on the left in the image above).

DEVELOPERS ONLY SECTION

SUGGESTED CHANGE (Pseudocode optional)

We should establish a minimum image size when exporting in a document format that achieves decent image quality when zoomed as in the example above. The default tile dimension should be increased until the full image size is 1 step above the minimum total image size (or until just before the image size is too big to be generated at all) - whichever comes first.

FILES AFFECTED (where the changes will be implemented) - developers only

unknown

LEVEL OF EFFORT - developers only

minor

COMMENTS

This issue is new as of pull request #126, when PNGs started to be embedded in doc files to decrease the file size.

Comments (0)

  1. Log in to comment