Comments (2)
Calling urlencode/decode for each image on each request is not ideal and unnecessary. If your images have "bad names" it's time to name/rename your images accordingly.
For perfect caching and by standard you should name your images using a-Z-0-9, preferably each image should have a hash as name.
So not approved.
from cloudflare-image-resizing.
Hello Mecanik,
Thank you for your answer !
All my images are named the right way you say. Here are some examples :
- location-materiel-audio-visuel.jpg
- enregistrements-des-debats-multilingues.jpg
- accueil-des-participants-bienvenue.jpg
- creation-de-badges-acces-gestion-vip.jpg
- creation-de-badges-acces.jpg
- collaboration-interactive-reunion-multilingue.jpg
The problem doesn't came from the image path itself stored in the $image_path variable.
Because I had no errors (W3C validator) before using your amazing resizing tool.
Like you can see in the code on the previous message, I only encode the other parts of the path.
Maybe there is a compatibility problem with my configuration ?
Here are some informations about my environment :
- the website is running WordPress 6.1.1
- PHP 8.0.27 (mysqlnd) and 10.3.37 MariaDB in utf8mb4 (allow any Unicode character) on Apache Linux 5.15.0 server
- using Cloudflare 4.11.0 and CloudFlare Image Resizing 1.3.
Well, waiting to hear from you soon!
Have a nice day!
from cloudflare-image-resizing.
Related Issues (20)
- Broke my site's images HOT 5
- All images are gone after installing the code. HOT 5
- Bug with iOS 16? HOT 2
- Feature Request: Resize only images with a certain class HOT 2
- I've installed but not working HOT 2
- Wordpress Theme Images Not being Optimized HOT 3
- Saves http instead of https HOT 2
- Plugin wont activate/install HOT 3
- Image with a special crop set in page builder are defaulting to original aspect ratio HOT 2
- Images are not resized on smaller viewports HOT 2
- Missing Images HOT 2
- A simple question, I can't find answer of on google. HOT 7
- The URL with the folder causes the plugin to be configured incorrectly HOT 2
- Question re "Strip image sizes" HOT 2
- High Load with Plugin HOT 2
- Images not processed HOT 2
- Special Rules for not resize images like Google Merch Feed HOT 2
- Plugin rewriting Yoast schema image references HOT 2
- The <region> specified is invalid. HOT 3
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 cloudflare-image-resizing.