Comments (2)
It's possible to configure Phast and your web server so that images are compressed without changing the URL.
If you're using the PhastPress plugin for WordPress, the instructions in the FAQ apply.
If not, it's almost the same thing except that the path to phast.php
will differ.
After setting this up you need to disabling rewriting the URLs of images by changing the Phast configuration. In case of the PhastPress plugin simply disable image optimization.
Otherwise, you need to pass a configuration array into PhastDocumentFilters::deploy()
. Review DefaultConfiguration.php to see how the configuration is formatted.
This config should work:
[
'documents' => [
'filters' => [
\Kibo\Phast\Filters\HTML\ImagesOptimizationService\Tags\Filter::class => false,
],
],
]
from phast.
Thank you for the info! I think this will point us in the right direction.
from phast.
Related Issues (16)
- Replace resource URLs by unique IDs
- Do not attempt to retrieve site-local resources via HTTP
- Remove empty media queries from optimized CSS
- Move cache to wp-content/cache
- Minify HTML
- Minify inline JSON
- Add setting for HTML minification
- Clean up server-side performance metrics
- Don't optimize/inline non-screen stylesheets
- Document the configuration options HOT 1
- phast.php HOT 1
- Getting Not Found errors on a localhost HOT 6
- october:mirror command HOT 2
- How do you load the script from the indexeddb to actual scripts tab HOT 1
- Phast console warnings HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phast.