defanor, to random
@defanor@snac.emacs.ch avatar

Poking around the snac web interface, here is my test toot with first impressions of it:

  • I like the HTTP basic authentication, in addition to the fairly predictable JS-free interface.

  • The CSS-based hidden blocks are rather unusual though. But at least thoir behavior must be predictable once you get used to them.

  • The dark theme has issues: white-on-black is too much of a contrast, and notifications make it white-on-red ( on )), the contrast ratio of which is too low. Also buttons with bright borders seem to stand out more than texts do.

  • No browsing of posts from other instances, apparently. Which is okay, though such proxying would have been handy, given that accessing them directly would lead back to the JS-heavy interfaces.

  • No personal archive (backup) functionality in sight.

Looks nice overall: simple and fairly straightforward, as was advertised.

Update: apparently no hashtag following here, either. Not much of exploration-related functionality in general, it seems.

linuxgal, to coffee
@linuxgal@techhub.social avatar
rgadellaa, to random
@rgadellaa@mastodon.social avatar

@jensimmons quick question, I'm trying to do relative css syntax with display-p3 but running into some issues w/Safari.

As I understand, I need to use color() fn to define a p3 color:
color( display-p3 0 0 0 )

So if I want to make that relative, that would become:
color( display-p3 from #f00 r g b )

but Safari doesn't seem to support color() fn with relative syntax:
CSS.supports('color: color( display-p3 from #f00 r g b );')
> false

Am I messing up the syntax?

jensimmons,
@jensimmons@front-end.social avatar

@rgadellaa Try color(from #f00 display-p3 r g b)

https://drafts.csswg.org/css-color-5/#funcdef-color

pillow, to python
@pillow@fosstodon.org avatar

Pillow 10.1.0 is out!

Python 3.12 is officially supported.

A new ImageOps.cover method has been added, that a resized version of the image, so that the requested size is covered, while maintaining the original aspect ratio.

Pillow had a “better than nothing” default font. Now, if FreeType is available, a version of Aileron Regular is loaded, which can be drawn at chosen font sizes.

Release notes:

https://pillow.readthedocs.io/en/latest/releasenotes/10.1.0.html

Enjoy!

#Python #Pillow #PythonPillow #OpenSource #release #Python312

API Additions EpsImagePlugin.gs_binary EpsImagePlugin.gs_windows_binary stores the name of the Ghostscript executable on Windows. EpsImagePlugin.gs_binary has now been added for all platforms, and can be used to customise the name of the executable, or disable use entirely through EpsImagePlugin.gs_binary = False. has_transparency_data Images now have has_transparency_data to indicate whether the image has transparency data, whether in the form of an alpha channel, a palette with an alpha channel, or a “transparency” key in the info dictionary. Even if this attribute is true, the image might still appear solid, if all of the values shown within are opaque. ImageOps.cover Returns a resized version of the image, so that the requested size is covered, while maintaining the original aspect ratio. See Resize relative to a given size for a comparison between this and similar ImageOps methods. size and font_size arguments when using default font Pillow has had a “better than nothing” default font, which can only be drawn at one font size. Now, if FreeType support is available, a version of Aileron Regular is loaded, which can be drawn at chosen font sizes. The following size and font_size arguments can now be used to specify a font size for this new builtin font: ImageFont.load_default(size=24) draw.text((0, 0), "test", font_size=24) draw.textlength((0, 0), "test", font_size=24) draw.textbbox((0, 0), "test", font_size=24) draw.multiline_text((0, 0), "test", font_size=24)
Other Changes Python 3.12 Pillow 10.0.0 had wheels built against Python 3.12 beta, available as a preview to help others prepare for 3.12, and ensure Pillow can be used immediately on release day of 3.12.0 final (2023-10-02, PEP 693). Pillow 10.1.0 now officially supports Python 3.12. Added support for DDS BC5U and 8-bit color indexed images Support has been added to read BC5U DDS files as RGB images, and PALETTEINDEXED8 DDS files as P mode images. Support reading signed 8-bit YCbCr TIFF images TIFF images with unsigned integer data, 8 bits per sample and a photometric interpretation of YCbCr can now be read.
Resize relative to a given size from PIL import Image, ImageOps size = (100, 150) with Image.open("Tests/images/hopper.png") as im: ImageOps.contain(im, size).save("imageops_contain.png") ImageOps.cover(im, size).save("imageops_cover.png") ImageOps.fit(im, size).save("imageops_fit.png") ImageOps.pad(im, size, color="#f00").save("imageops_pad.png") # thumbnail() can also be used, # but will modify the image object in place im.thumbnail(size) im.save("imageops_thumbnail.png")

schizanon, to mastodon
@schizanon@mas.to avatar

I still need to fix the "next/older" links on https://schizo.social and add "back/newer", but it's been brought to my attention that my favorite color () is "eye gougey", so maybe adding a theme color setting should be higher on my list of priorities.

What do you think is the next most obviously missing thing in my ugly little client?

mariusor, to CSS
@mariusor@metalhead.club avatar

Among the things I learned today is how to lower opacity of a color that is stored as a CSS variable in hex notation.

body {
--fg-color: ;
}

div {
color: ;
background-color: color-mix(in srgb, var(--fg-color), transparent 40%) ;
}

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • everett
  • InstantRegret
  • thenastyranch
  • magazineikmin
  • khanakhh
  • rosin
  • Youngstown
  • slotface
  • mdbf
  • cisconetworking
  • kavyap
  • cubers
  • DreamBathrooms
  • megavids
  • ngwrru68w68
  • Durango
  • osvaldo12
  • tacticalgear
  • modclub
  • normalnudes
  • Leos
  • ethstaker
  • GTA5RPClips
  • tester
  • anitta
  • provamag3
  • lostlight
  • All magazines