Giter Site home page Giter Site logo

Comments (2)

Mecanik avatar Mecanik commented on May 26, 2024 1

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.

DenisZando avatar DenisZando commented on May 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.