All Projects β†’ FEMessage β†’ v-img

FEMessage / v-img

Licence: MIT license
πŸ“ΈUse webp and lazyload images

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
shell
77523 projects

Projects that are alternatives of or similar to v-img

Vanilla Lazyload
LazyLoad is a lightweight, flexible script that speeds up your website by deferring the loading of your below-the-fold images, backgrounds, videos, iframes and scripts to when they will enter the viewport. Written in plain "vanilla" JavaScript, it leverages IntersectionObserver, supports responsive images and enables native lazy loading.
Stars: ✭ 6,596 (+13641.67%)
Mutual labels:  webp, lazyload-images
jekyll-loading-lazy
πŸ§™πŸ½β€β™€οΈ Automatically adds loading="lazy" to <img> and <iframe> tags. Load images on your sites lazily without JavaScript.
Stars: ✭ 41 (-14.58%)
Mutual labels:  img, lazyload-images
manael
Manael is a simple HTTP proxy for processing images.
Stars: ✭ 34 (-29.17%)
Mutual labels:  webp
webpjs
πŸ“· WebP.js Polyfill
Stars: ✭ 25 (-47.92%)
Mutual labels:  webp
lazy-load-images.js
Progressive & lazy loading images.
Stars: ✭ 17 (-64.58%)
Mutual labels:  lazyload-images
webp
Create a WebP copy for images (TYPO3 CMS)
Stars: ✭ 57 (+18.75%)
Mutual labels:  webp
lamba-thumbnailer
AWS S3 Video Thumbnailer with Lambda
Stars: ✭ 21 (-56.25%)
Mutual labels:  webp
Apng4android
Android animation support for APNG & Animated WebP & Gif,High performance
Stars: ✭ 222 (+362.5%)
Mutual labels:  webp
JayantGoel001.github.io
My Personal Portfolio.
Stars: ✭ 31 (-35.42%)
Mutual labels:  webp
guide-to-async-components
πŸ“– Guide To JavaScript Async Components
Stars: ✭ 79 (+64.58%)
Mutual labels:  lazyload-images
gfxprim
Open-source modular 2D bitmap graphics library with emphasis on speed and correctness.
Stars: ✭ 32 (-33.33%)
Mutual labels:  webp
ipx
High performance, secure and easy to use image proxy based on Sharp and libvips.
Stars: ✭ 683 (+1322.92%)
Mutual labels:  webp
video thumbnail
This plugin generates thumbnail from video file or URL. It returns image in memory or writes into a file. It offers rich options to control the image format, resolution and quality. Supports iOS and Android.
Stars: ✭ 159 (+231.25%)
Mutual labels:  webp
raf-pool
requestAnimationFrame pool to avoid busyness on the thread
Stars: ✭ 16 (-66.67%)
Mutual labels:  lazyload-images
wasm-codecs
WebAssembly codecs for mozjpeg, oxipng, gifsicle and webp.
Stars: ✭ 48 (+0%)
Mutual labels:  webp
sail
The missing small and fast image decoding library for humans (not for machines) β›΅ https://sail.software
Stars: ✭ 206 (+329.17%)
Mutual labels:  webp
Quick Picture Viewer
πŸ–ΌοΈ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (+393.75%)
Mutual labels:  webp
ImgConverter
🏷 ImgConverter is chrome extension that converts form image of markdown notation to img tag(<img>) when you upload images
Stars: ✭ 18 (-62.5%)
Mutual labels:  img
rocket-lazy-load
Standalone LazyLoad plugin for WordPress (based on WP Rocket)
Stars: ✭ 25 (-47.92%)
Mutual labels:  lazyload-images
img2Ascii
基于JSηš„ε›Ύη‰‡θ½¬ASCII码瀺意图
Stars: ✭ 18 (-62.5%)
Mutual labels:  img

v-img

Build Status NPM Download NPM Version NPM License PRs Welcome Automated Release Notes by gren

This component aims to replace native img element and use webp!

δΈ­ζ–‡ζ–‡ζ‘£

Table of Contents

Features

  • Input jpg/png, output webp(svg/gif not be processed)
  • Automatically check whether your browser support webp and use it
  • Support cloud image service
    • Alibaba Cloud
    • Huawei Cloud
    • Qiniu Cloud
  • Support SSR

⬆ Back to Top

Install

yarn add @femessage/v-img

⬆ Back to Top

Usage

<v-img :src="src" width="100" />

provider

The component use provider to choose image processing strategy, here are available values:

  • alibaba(default value, and it's compatible with Huawei Cloud)
  • qiniu
  • self
  • none

  • Alibaba OSS services are used by default, so if you host images on Alibaba OSS, provider can be omitted, this means jpg/png on Alibaba OSS, you can get webp when using v-img

  • When provider=self, means you host images on your server(like Nginx), this needs you need to prepare a webp file for each image, for example:

images/
  avatar.png # your original image file
  avatar.png.webp # webp file need to be generated

look at this article to see how to use node.js to generate webp from jpg/png

  • When provider=none, it only enable lazyload images function

width/height

You'd better set image's width or height attribute(like 100, not 100px) to make sure lazyload function can work correctly

lazyload

The lazyload function is supported by lazysizes, and it is auto enabled.

⬆ Back to Top

Links

⬆ Back to Top

Contributing

For those who are interested in contributing to this project, such as:

  • report a bug
  • request new feature
  • fix a bug
  • implement a new feature

Please refer to our contributing guide.

⬆ Back to Top

Contributors

Thanks goes to these wonderful people (emoji key):


ColMugX

πŸ’» πŸ“– ⚠️ 🌍

Donald Shen

πŸ’» ⚠️ πŸ“– πŸ‘€

EVILLT

πŸ’» ⚠️ πŸ“–

Han

πŸ’» πŸ›

Cold Stone

πŸ“–

levy

πŸ“† πŸ€”

4Ark

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!

⬆ Back to Top

License

MIT

⬆ Back to Top

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].