{"id":27079009,"url":"https://github.com/netlogix/nximageoptimizer","last_synced_at":"2026-02-25T02:31:07.613Z","repository":{"id":36418357,"uuid":"40723332","full_name":"netlogix/nximageoptimizer","owner":"netlogix","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-29T07:46:58.000Z","size":108,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T01:21:46.562Z","etag":null,"topics":["image-compression","php","typo3"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netlogix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-14T15:52:50.000Z","updated_at":"2024-10-29T07:47:01.000Z","dependencies_parsed_at":"2024-04-18T01:26:02.745Z","dependency_job_id":"8542f416-9fb4-43ee-9697-a15b796e6e66","html_url":"https://github.com/netlogix/nximageoptimizer","commit_stats":{"total_commits":42,"total_committers":7,"mean_commits":6.0,"dds":0.5,"last_synced_commit":"170993ed09ae6f4fcec210d58684c453dec0b9ff"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/netlogix/nximageoptimizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fnximageoptimizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fnximageoptimizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fnximageoptimizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fnximageoptimizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netlogix","download_url":"https://codeload.github.com/netlogix/nximageoptimizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlogix%2Fnximageoptimizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29809086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T22:43:48.403Z","status":"online","status_checked_at":"2026-02-25T02:00:07.329Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image-compression","php","typo3"],"created_at":"2025-04-06T01:20:27.147Z","updated_at":"2026-02-25T02:31:07.593Z","avatar_url":"https://github.com/netlogix.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TYPO3 Extension `nximageoptimizer`\n\n[![TYPO3 V12](https://img.shields.io/badge/TYPO3-12-orange.svg)](https://get.typo3.org/version/11)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%208.1-8892BF.svg)](https://php.net/)\n[![GitHub CI status](https://github.com/netlogix/nximageoptimizer/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/netlogix/nximageoptimizer/actions)\n\n\nThis TYPO3 extension optimizes images (jpg, png, gif, svg) for web presentation when they are published.\nIt will generate WebP versions of each rendered image and serve them to the client.\n\n## Compatibility\n\nThe current version (dev-master) of this extension has been tested in TYPO3 12 on PHP 8.1, 8.2 and 8.3.\n\n## Requirements\n\nThis extension requires additional third-party tools.\n* [jpegoptim](https://github.com/tjko/jpegoptim): utility to optimize/compress JPEG files\n* [optipng](http://optipng.sourceforge.net/): OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information\n* [pngquant](https://pngquant.org/): pngquant is a command-line utility and a library for lossy compression of PNG images\n* [svgo](https://github.com/svg/svgo): Node.js tool for optimizing SVG files\n* [gifsicle](https://github.com/kohler/gifsicle): Create, manipulate, and optimize GIF images and animations\n\nYou should install them using your package manager of choice.\n\n### Ubuntu Example\n\nThe following is an example installation on Ubuntu:\n```bash\nsudo apt-get install jpegoptim optipng pngquant gifsicle\nsudo npm install -g svgo\n```\n\n### macOS Example (using [Homebrew](https://brew.sh/))\n\n\n```bash\nbrew install jpegoptim\nbrew install optipng\nbrew install pngquant\nbrew install svgo\nbrew install gifsicle\n```\n\n### macOS Example (using [MacPorts](https://www.macports.org/))\n\n```bash\nport install jpegoptim\nport install optipng\nport install pngquant\nport install svgo\nport install gifsicle\n```\n\n## Installation\n\nInstall the package via composer.\n\n```bash\ncomposer require netlogix/nximageoptimizer\n```\n\n\nPlace the following in your .htaccess file and images will be replaced with WebP version.\n```apache\n\t# Check if browser support WebP images\n\t# Check if WebP replacement image exists\n\t# Serve WebP image instead\n\tRewriteCond %{HTTP_ACCEPT} image/webp\n\tRewriteCond %{DOCUMENT_ROOT}/$0.webp -f\n\tRewriteRule (.+)\\.(jpe?g|png)$ $0.webp [T=image/webp,E=accept:1]\n```\n\nTell every caching proxy to cache based on \"accept\" header\n```apache\n\tRewriteRule (.+)\\.(jpe?g|png|webp)$ - [env=POTENTIAL_WEBP_IMAGE:1]\n\tHeader merge vary accept env=POTENTIAL_WEBP_IMAGE\n```\n\n## Troubleshooting\n\nThe Ubuntu source package for imagemagick does not declare a build dependency on libwebp-dev.\nThus imagemagick gets built without webp support.\nTo fix this install the webp package.\n```bash\nsudo apt-get install webp\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fnximageoptimizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlogix%2Fnximageoptimizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlogix%2Fnximageoptimizer/lists"}