{"library":"image-source-loader","type":"library","category":null,"description":"Webpack loader that returns image metadata (base64 URI, width, height) as a JavaScript object. Version 0.6.5 is the latest; last published in 2022. It differentiates from simple base64 loaders by also providing image dimensions. Designed for Rax framework, but usable in any webpack project. The loader supports common image formats (see mimes.json). Release cadence: infrequent, no recent updates.","language":"javascript","status":"active","version":"0.6.5","tags":["javascript","base64","image","webpack","loader","img","src"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install image-source-loader","imports":["import source from 'image-source!./image.png'","const source = require('image-source!./image.png');","{ test: /\\.(png|jpg)$/, use: 'image-source-loader' }"]},{"cmd":"yarn add image-source-loader","imports":[]},{"cmd":"pnpm add image-source-loader","imports":[]}],"homepage":"https://github.com/alibaba/rax#readme","github":"https://github.com/alibaba/rax","docs":null,"changelog":null,"pypi":null,"npm":"image-source-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}