mastodon.gamedev.place is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server focused on game development and related topics.

Server stats:

5.3K
active users

#javascript

120 posts106 participants0 posts today
Replied in thread

@richaesthetic @toolboxpro Once you have all the eye positions, you can place each photo on a large canvas, scale/reposition as needed, then crop based on eye distance to the four edges. That way, all images end up aligned at the eyes.

Although this is doable with native #shortcut actions, it would be tedious.

I'd probably go with running #JavaScript or #Python to handle the image processing or, at least, generate the needed resize/crop steps (those are easy to do in the #ShortcutsApp).

New Kitten release

• Fix: messages that are promises are properly awaited before being sent.

kitten.small-web.org

Kitten automatically and transparently handles asynchronous content in your templates for you so you don’t have to worry about it. One place where this wasn’t working properly is if you addressed `this.component` to stream a custom update of your component manually instead of calling the `this.update()` method of Kitten component instances.

e.g.,

```js
export default class AdminPage extends kitten.Page {
// …
onSelectedPost (data) {
this.send(kitten.html`<${this.component} postId='${data.selectedPost.postId}' />`)
}
}
```

:kitten:💕

📌 New from the Socket Research Team: A malicious npm package disguised as an #Advcash integration triggers a reverse shell during payment success. Unlike many malicious packages that execute code during installation, this payload is delayed until runtime.

socket.dev/blog/npm-package-ad #JavaScript

SocketMalicious npm Package Disguised as Advcash Integration Trigg...The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment su...