Utility module for handling image-related operations including regex patterns, validation schemas, and image processing. Version 6.1.0 is the current stable release. Designed specifically for use with the Hapi.js framework and CouchDB. Provides predefined image sizes and cropping/resizing functionality. Key differentiators: integrates tightly with Hapi request objects and CouchDB attachments.
npm install locator-image-utilityNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates creation of a Hapi server route that uses locator-image-utility for image upload validation and processing.
Ensure the request argument is a valid Hapi request object from within a route handler.
Consider alternative image processing libraries if not using Hapi/CouchDB.
Check compatibility with your Hapi version; update validation schemas if needed.
Use const { image } = require('locator-image-utility'); then image.processor(request).Run npm install locator-image-utility and ensure it's in node_modules.
Ensure the file is an image (PNG, JPG) and the request is multipart/form-data.
No dependency data recorded yet.