sharp
Leaflet
Our great sponsors
sharp | Leaflet | |
---|---|---|
96 | 219 | |
27,892 | 39,879 | |
- | 0.8% | |
9.4 | 8.9 | |
9 days ago | 11 days ago | |
JavaScript | JavaScript | |
Apache License 2.0 | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sharp
- Sharp – fast image conversion in Node.js
-
Optimizing Image Display with Blur Placeholder and Lazyload
blur is a technique to blur images while reducing the file size surprisingly. blur works by enlarging the pixels of the image, which reduces the details of the image, and the number of colors also decreases, thus saving storage space. Sharp is a popular image processing library in Node.js, and it supports the blur function. After going through the blur function, the image size at this point is only a few KB, which is reasonable for an image placeholder in the article.
-
Organize the mess of your photo folders with Node
sharp
-
Creating Chess Board SVGs, PNGs, and GIFs
For simplicity, I will be generating PNGs with JavaScript/Node and the Sharp image library. Any library that can convert between pixel arrays and image files will make the process quite straightforward.
-
My Journey to Accelerate Load Times in Heavy Frontend
There is also a library that Next.js itself uses: sharp. It can be setup as Node.js service. I even played around a little: image-proxy-service
-
Automated Image Compression: A Vite Plugin Using Sharp
Sharp Documentation: Link
- Using SVG to create simple sparkline charts
-
JavaScript Gom Jabbar
ESLint does an amazing job in detecting floating promises. I've not had it miss one, ever. When adding this to a project, I've discovered multiple accidental bugs due to a missing "await" keyword--bugs that were extremely subtle and intermittent in many cases.
The only thing it can't do is determine that you actually did handle the promise later. Which is fine. It's a LINTING RULE, and false positives are the name of the game.
What's BAD is when you accidentally miss handling a promise at all. It's an invisible error without the linting rule.
Your other comments...don't even make sense. You're going to build a Lanczos filter by hand? Or you're only going to ... compile ImageMagick to WebAssembly?!, ... an implementation which is tremendously slower (nearly unusably so for large images) than that of Sharp:
https://www.npmjs.com/package/sharp
... which is simply an import away?
No, what you're doing is called "motivated reasoning." You've concluded that Deno is the best, and you're reinterpreting all of my complaints in convoluted ways to support your predetermined conclusion.
Standard fanboy behavior. Or troll behavior. I cite Poe's Law as why it's impossible to tell the difference.
- How does next/image work?
- Image processing alongside a Express server
Leaflet
-
JavaScript Libraries That You Should Know
9. Leaflet
-
Animated traveling map with Leaflet
Leaflet is the most famous open-source map library, with lots of plugins. 2 of them are used to animate a marker on the map:
-
5 JavaScript mapping APIs compared
Leaflet stands out as one of the top open source JavaScript libraries for crafting interactive maps. Optimized for both mobile and web devices, it is relatively small (around 42KB) and offers a ton of features, plugins, and a straightforward API. It works across all browsers and platforms.
- 2024: The year of the OpenStreetMap vector maps
-
Shots: Create Mockups
Finding maplibre 'better' was more valid at the time than today, and is also subjective. The creators and maintainers of both libraries have done some great work (and are still doing so).
Back in January 2022, the stable version of leaflet, v1.7.1, was from September 2020, and was affected by some small bugs degrading the user experience. Although the release of following version seemed close, there was no clear schedule for it, and I had concerns about how maintained the library would remain.
As of today, the bug from 2015 where there is some white space between map tiles on fractional zoom levels [0] is still open.
Also, leaflet was a pain to integrate in Svelte Kit framework, because it depended on `window` and-or `document`, not available at server side.
Maplibre, on the other hands, with a feature set roughly equivalent to Leaflet, benefited from much more frequent releases, and seemed more stable across browsers and devices. It was also easier to make it work in Svelte kit.
-
🌲Svelte + 🍃Leaflet + 📍 Clusters
For a personal project, I had to use Leaflet with Svelte, and I faced some problems during development.
-
Embed leaflet JS maps in notion?
Do anyone have any workaround on how to get leaflet js to work inside notion, either as an embed or as code, or widget? https://leafletjs.com/
-
Ask HN: When building with complex maps do you go with GMaps, Mapbox, OSM?
None of those things are what most in the GIS space would consider "complex", so you could go with any of the options you selected. For lightweight maps, I like Leaflet
-
What’s the most beautifully documented project you’ve seen?
I have a special place in my heart for Leaflet and it’s documentation: https://leafletjs.com
-
Who wants to collab for a Grab-clone or Angkas-clone web app?
Its suppose to be free: like with map data providers there's Leaflet, OpenStreet Maps and many more which are all for free.
What are some alternatives?
jimp - An image processing library written entirely in JavaScript for Node, with zero external or native dependencies.
Cesium - An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
squoosh - Make images smaller using best-in-class codecs, right in the browser.
maplibre-gl-js - MapLibre GL JS - Interactive vector tile maps in WebGL2
gm - GraphicsMagick for node
OpenLayers3 - OpenLayers
Next.js - The React Framework
folium - Python Data. Leaflet.js Maps.
pica - Resize image in browser with high quality and high speed
mapbox.js - Mapbox JavaScript API, a Leaflet Plugin
sveltekit-image-plugin - SvelteKit demo code for using vite-imagetools to add cached, responsive, Next-Gen images to a SvelteKit site with no cumulative layout shift.
polymaps - Polymaps is a free JavaScript library for making dynamic, interactive maps in modern web browsers.