đŸ Archived View for gemini.ctrl-c.club âș ~ssb22 âș screenshot.gmi captured on 2023-01-29 at 03:24:07. Gemini links have been rewritten to link to archived content
âŹ ïž Previous capture (2022-07-16)
-=-=-=-=-=-=-
This page is not legal advice. Be sure that you have permissions under copyright law to share a copy of the Web document, and that it is legal to read in the country where your reader is located.
Reasons for sharing a screenshot instead of a link:
Reasons not to use screenshots:
WeChat is normally used on mobile phones with narrow displays.âAs of 2018, any image it receives is first shown as a preview (usually taken from the middle); when the user taps to view it full-screen, the image is sized to fill the width of the display, but in the vertical direction the user is allowed to scroll (starting at the top).âThis makes it ideal to send screenshots of fixed width but unbounded height (within the size limits mentioned below), and such âtall, narrow images of textâ are already used by people forwarding âfunâ things around WeChat.
My Web Adjuster can be used with Headless Chrome (or Firefox or PhantomJS) to create an appropriate ânarrow-column screenshotâ by configuring with a js_interpreter setting (ideally HeadlessChrome, but if you canât install that then you could try the older PhantomJS), and with --js_size=400 --viewsource and append .screenshot to the end of the URL you give it.
On GNU/Linux I also recommend creating a ~/.fonts.conf or ~/.config/fontconfig/fonts.conf file (depending on which one the system uses) to switch off anti-aliasing, as non-antialiased text is usually more readable and makes for better compression in PNG files.
âA non-antialiasing fonts.conf
There is a possible loophole in Microsoftâs YaHei font license that might allow you to use that font if you want to make the Chinese text look a little nicer at small pixel sizes.âUsual disclaimers apply: I am not a lawyer.
Loophole in Microsoft YaHei font license?
You must be aware of WeChatâs image size limits. Basically the upper bound is 300 KiB, or 128K in certain (avoidable) circumstances.
More on WeChatâs image size limits
You may also assemble up to 30 images into a WeChat âNoteâ, to be displayed as a continuous stack of images.âThese may display blurred until tapped unless you limit each oneâs vertical dimension to about twice the horizontal (e.g. 400x800, giving you a total vertical capacity of 24,000 which is typically 3-4x what youâd get if doing the same thing in individual images if the page makes moderate use of graphics).âThe more you exceed this per-image vertical size, the more the WeChat app will blur the image before itâs tapped, even though the imageâs physical display size remains in correct proportion.
If you wish to crop out an irrelevant section of the pageâfor example a box of links at the bottom, which wonât be usable on a screenshotâyou can either write a site-specific rule for it in Web Adjuster, or else load the screenshot into The GIMP, select and cut unwanted full-width areas to transparent (making sure not to cut from the text or creditsâdonât misrepresent or plagiarise!), export to PNG, and use a command like:
python2 -c 'f="test.png"; from PIL import Image as I; i=I.open(f); b=i.tobytes(); c="".join(b[n:n+4] for n in xrange(0,len(b),4) if ord(b[n+3])); I.frombytes("RGBA", (i.width, len(c)/i.width/4), c) .save(f,optimize=True)'
(command works only if you cut full-width areas).
If the page has many pictures but little text, consider using JPG instead.âWith ImageMagick, use:
convert input.png -define jpeg:extent=300KiB output.jpg
(this option was introduced in version 6.5.8-1 and uses âbinary chopâ to find the most suitable JPEG quality setting within 8 tries; if you have a version between 6.9.1-0 and 6.9.2-4 you should also add -quality 100 which is ignored by higher versions).âIf you are sequencing multiple images into a âNoteâ, you can choose between PNG and JPEG on an image-by-image basis.
All material © Silas S. Brown unless otherwise stated. Firefox is a registered trademark of The Mozilla Foundation. ImageMagick is a registered trademark of ImageMagick Studio LLC. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Microsoft is a registered trademark of Microsoft Corp. WeChat is a trademark of Tencent Holdings Limited. Any other trademarks I mentioned without realising are trademarks of their respective holders.