
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@imageengine/netlify
Advanced tools
Netlify Build plugin - Imageengine optimize your images by up to 80% on autopilot for improved SEO, lower bounce rates, better mobile experience, and increased sales
The Netlify ImageEngine plugin optimizes your images by up to 80% on autopilot, enhancing SEO, reducing bounce rates, improving mobile experiences, and boosting sales.
Install this plugin from Netlify.
NPM : pnpm i @imageengine/netlify
[[plugins]]
package = "@imageengine/netlify"
[plugins.inputs]
deliveryAddress = "blazing-fast-pics.cdn.imgeng.in"
[plugins.inputs.directives]
height = 600
width = 700
rotate = 90
The following inputs options are available:
deliveryAddress: The ImageEngine delivery address.directives: Optional image transformation directives.Automatic URL Replacement: The plugin scans HTML files and replaces image
URLs with optimized ImageEngine URLs using the updateHtmlImagesToImageEngine
function.
srcset Handling: It updates srcset attributes to ensure all image
sources are optimized, improving loading times and image quality across
different devices.
Error Handling: The plugin logs errors encountered during the URL transformation process, ensuring smooth operation and easy debugging.
Netlify Build Plugin: The onPostBuild function integrates with Netlify's
build process, automatically optimizing images after the build completes.
Environment Context Awareness: The plugin adapts to different Netlify deployment contexts (e.g., branch deploys, deploy previews) by using the appropriate host URL.
Configuration Validation: It checks for necessary configurations like
deliveryAddress and PUBLISH_DIR, failing gracefully with informative error
messages if they are missing.
updateHtmlImagesToImageEngineThis function takes HTML content and options, then updates image URLs to use
ImageEngine for optimization. It handles both src and srcset attributes,
ensuring all images are optimized.
processBundleThis function processes JavaScript bundle content, replacing image URLs with
optimized ImageEngine URLs. It uses regular expressions to identify image URLs
and applies the transformSrcURL and build_IE_url functions to generate the
optimized URLs. This ensures that all images in the JavaScript bundles are
optimized for better performance and quality.
transformSrcURLThis function transforms original image URLs to use the ImageEngine delivery address. It handles different types of URLs:
It ensures that the final URL is correctly formatted and ready for ImageEngine processing.
FAQs
Netlify Build plugin - Imageengine optimize your images by up to 80% on autopilot for improved SEO, lower bounce rates, better mobile experience, and increased sales
We found that @imageengine/netlify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.