Win a copy of The Prairie Homestead Cookbook this week in the Cooking Forum forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
permaculture forums growies critters building homesteading energy monies kitchen purity ungarbage community wilderness fiber arts art permaculture artisans regional education skip experiences global resources the cider press projects digital market permies.com private forums all forums
this forum made possible by our volunteer staff, including ...
master stewards:
  • Nicole Alderman
  • r ranson
  • Anne Miller
  • Pearl Sutton
  • James Freyr
  • Mike Haasl
  • paul wheaton
  • Dave Burton
stewards:
  • Joylynn Hardesty
  • Jocelyn Campbell
  • Joseph Lofthouse
garden masters:
gardeners:
  • Carla Burke
  • Steve Thorn
  • Eric Hanson

WebP pictures

 
Posts: 422
Location: Abkhazia · humid subtropical
47
cat forest garden trees solar wood heat woodworking
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently disovered WebP for pictures, and I think it makes sense to allow it for uploaded pictures, or even convert uploads into it. It offers a much smaller file size and does not have the blocky artefacts of JPEG.

This WebP Image I took only uses 388,278 bytes.
 
master steward
Posts: 29108
Location: missoula, montana (zone 4)
hugelkultur trees chicken wofati bee woodworking
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As long as we are fiddling with settings, do you have suggestions for any other formats?
 
gardener
Posts: 389
Location: Piedmont 7a
115
hugelkultur trees woodworking
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The picture does not show up on my mobile.
 
Sebastian Köln
Posts: 422
Location: Abkhazia · humid subtropical
47
cat forest garden trees solar wood heat woodworking
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

paul wheaton wrote: As long as we are fiddling with settings, do you have suggestions for any other formats?


Jpeg and PNG are already supported. SVG might be interesting for drawings.

Artie Scott wrote: The picture does not show up on my mobile.


Yes, unfortunately some browsers living behind the moon still don't support it. Firefox took far too long to add support for it. But given that it can cut image sizes into a quarter or less, I think it is worth it.
 
Posts: 54
Location: Haida Gwaii, British Columbia (7b)
20
hugelkultur dog forest garden fungi foraging cooking ungarbage
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unfortunately WebP doesn't have very good support, so people on Mac or iOS (iPhone), or those with Internet Explorer or Blackberry will not be able to view them.
If you're concerned with image optimization, TinyJpg is a cool/simple tool for this!
 
pollinator
Posts: 1298
Location: 4b
270
dog forest garden trees bee building
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to add except that the picture you took is stunning.
 
Posts: 25
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sebastian Köln wrote:SVG might be interesting for drawings.


SVGs uploaded from untrusted sources are a security nightmare. You can embed scripts in them, and that's just the tip of the iceberg.
 
Sebastian Köln
Posts: 422
Location: Abkhazia · humid subtropical
47
cat forest garden trees solar wood heat woodworking
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mike Lang wrote:

Sebastian Köln wrote:SVG might be interesting for drawings.


SVGs uploaded from untrusted sources are a security nightmare. You can embed scripts in them, and that's just the tip of the iceberg.



Embedding them in a <img src="file.svg"> should be safe.

Simon Gooder wrote:If you're concerned with image optimization, TinyJpg is a cool/simple tool for this!


While I agree that this is a neat tool, it does not keep the same level of detail.
(I just double checked this by looking at high contrast areas. The compressed JPEG has the usual block artefacts and overshoots the edges.)
 
Mike Lang
Posts: 25
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Sebastian Köln wrote:Embedding them in a <img src="file.svg"> should be safe.


If it was that easy, then why do libraries like this exist? - https://github.com/darylldoyle/svg-sanitizer/tree/master/src
Furthermore, why does WordPress core still block them by default? - https://core.trac.wordpress.org/ticket/24251
 
Who among you feels worthy enough to be my best friend? Test 1 is to read this tiny ad:
Chinese Chestnut Trees of Quality Cultivars 50 for $199 +FREESHIP
https://permies.com/t/127392/Interwoven-Nursery-Groundnuts-Chestnuts
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!