Fossil

Check-in [82ad5914]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fixed a few bugs in the Makefile in the www/image-format-vs-repo-size.md doc, and added a caveat about potential further bugs.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 82ad5914f101d867cb991a84071d3154b2155495958356ccd81b1962a90d336b
User & Date: wyoung 2019-03-24 18:56:57
Context
2019-03-25
06:18
Typo fix, reported in the forum: administator. check-in: 1614c9b5 user: stephan tags: trunk
2019-03-24
18:56
Fixed a few bugs in the Makefile in the www/image-format-vs-repo-size.md doc, and added a caveat about potential further bugs. check-in: 82ad5914 user: wyoung tags: trunk
18:50
Added my two recently-created documents to the permuted doc index check-in: 41579b4c user: wyoung tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to www/image-format-vs-repo-size.md.

   157    157   ## Automated Recompression
   158    158   
   159    159   Since programs that produce and consume binary-compressed data files
   160    160   often make it either difficult or impossible to work with the
   161    161   uncompressed form, we want an automated method for producing the
   162    162   uncompressed form to make Fossil happy while still having the compressed
   163    163   form to keep our content creation applications happy.  This `Makefile`
   164         -will do that for several different compressed file types:
          164  +should⁴ do that for BMP, PNG, SVG, and XLSX files:
   165    165   
   166    166           .SUFFIXES: .bmp .png .svg .svgz
   167    167   
   168    168           .svgz.svg:
   169    169               gzip -dc < $< > $@
   170    170   
   171    171           .svg.svgz:
................................................................................
   179    179   
   180    180           SS_FILES := $(wildcard spreadsheet/*)
   181    181   
   182    182   
   183    183           all: $(SS_FILES) illus.svg image.bmp doc-big.pdf
   184    184   
   185    185           reconstitute: illus.svgz image.png
   186         -            unzip spreadsheet.xlsx -d spreadsheet
   187         -            qpdf doc-small.pdf doc-big.pdf
          186  +            ( cd spreadsheet ; zip -9 ../spreadsheet.xlsx) * )
          187  +            qpdf doc-big.pdf doc-small.pdf
   188    188   
   189    189   
   190    190           $(SS_FILES): spreadsheet.xlsx
   191    191               unzip $@ -d $<
   192    192   
   193    193           doc-big.pdf: doc-small.pdf
   194    194               qpdf --stream-data=uncompress $@ $<
................................................................................
   255    255   3.  The raw data changes somewhat from one run to the next due to the
   256    256       use of random noise in the image to make the zlib/PNG compression
   257    257       more difficult, and the random pixel changes.  Those test design
   258    258       choices make this a [Monte Carlo experient][mce].  We’ve found that
   259    259       the overall character of the results don’t change much from one run
   260    260       to the next.
   261    261   
          262  +4.  The `Makefile` above is not battle-tested.  Please report bugs and
          263  +    needed extensions [on the forum][for].
          264  +
          265  +[for]: https://fossil-scm.org/forum/forumpost/15e677f2c8
   262    266   [git]: https://git-scm.com/
   263    267   [lzw]: https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch
   264    268   [rs]:  https://rsync.samba.org/
   265    269   [us]:  http://www.cis.upenn.edu/~bcpierce/unison/