GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    feld (feld@bikeshed.party)'s status on Wednesday, 04-Oct-2023 23:00:35 JST feld feld
    in reply to
    • Amolith
    oxipng compresses better than optipng or pngcrush
    In conversation Wednesday, 04-Oct-2023 23:00:35 JST from gnusocial.jp permalink
    • Embed this notice
      Amolith (amolith@nixnet.social)'s status on Wednesday, 04-Oct-2023 23:00:37 JST Amolith Amolith

      Pro tip for optimising images before uploading them somewhere like fedi so the recipient(s) don’t have to download 12 MBs of unimportant detail

      magick input.jpg -resize 1000x resized.jpg du input.jpg resized.jpg # see the size difference jpegoptim -s --all-progressive -m70 resized.jpg du input.jpg resized.jpg # see the size difference

      Resizing the image does most of the heavy lifting. Very few people will blow it up fullscreen on a 4k display; 1000px wide is usually sufficient. The jpegoptim command strips metadata (such as location), turns it into a progressive JPG so it loads more pleasantly, then reduces the image detail by 30%

      For PNGs, replace .jpg with .png and the jpegoptim command with

      optipng -o6 -strip all resized.png

      It strips metadata and brute-forces common compression settings to find which one is more efficient.

      Friends don’t let friends waste bandwidth! :akko_thumbup:

      In conversation Wednesday, 04-Oct-2023 23:00:37 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.