summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-05-03 16:24:25 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-05-09 23:39:41 +0200
commit179b61c85f789c378182f9a5930e324ad1bbf2a1 (patch)
tree49f0de791fe036d1868bf50a3ce58146ecd1038e /examples
parent0400f2ebe0df71d6b3385908484d6badc720f8b4 (diff)
Update cbordump image to a higher-resolution one
Incidentally using reversed video, too, as that's what came naturally to the terminal I was using. File is smaller, but text in the new image is considerably more readable and the image is bigger. The examples guideline calls for an image giving some idea what the example is about, with a 4:3 or 5:4 aspect ratio. An image shorter than its width wasn't practical, and getting a useful amount of information in a height less than 3/2 of the width would have required widening into blank space purely to satisfy the aspect ratio. The prior image's ratio was about 12:7, the new one's is roughly 2:3. The old image showed the start of cbordump -a output, which is rather less illuminating than the default output of formatted data; it's also rather verbose, so was cut off part way through. It does, however, illustrate how the annotated form might be useful for debug purposes. The image also had a lot of blank space to the right of the text of interest, wasting roughly half of its width; it could easily have been cropped to 1:1 without loss of information. As example data-set, it used ../savegame/save.dat, but without any hint to how to generate that. I decided to include a hint to how to generate a CBOR data file to dump, then show the standard output and only the beginnings of the annotated output, as the latter (even on its own) would make the aspect ratio considerably taller. In the context of the standard display, the preamble of the annotated one gives a reasonable feel for what's going on, without belabouring the point. Pick-to: 6.5 Task-number: QTBUG-111228 Change-Id: Ic54893c483607e95627a50db76a0d9918744c07e Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/corelib/serialization/cbordump/doc/images/cbordump.pngbin48004 -> 19325 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/examples/corelib/serialization/cbordump/doc/images/cbordump.png b/examples/corelib/serialization/cbordump/doc/images/cbordump.png
index 72232c1a95..d951ff9b8f 100644
--- a/examples/corelib/serialization/cbordump/doc/images/cbordump.png
+++ b/examples/corelib/serialization/cbordump/doc/images/cbordump.png
Binary files differ