Giter VIP home page Giter VIP logo

Comments (2)

MattWilcox avatar MattWilcox commented on June 15, 2024

It looks like it's working perfectly.

I imagine you're using too small an image on too large a monitor for Adaptive Images to have anything to do. To test AI and determine if it can write to the cache-folder you can either;

  1. use a very large image (bigger than your monitor)
  2. try opening the page on device smaller than your breakpoint
  3. Use this code instead of the real JS, to force AI into believing you're using a smaller screen than you really are:
<script>document.cookie='resolution=480; path=/';</script>

Remember, Adaptive Images checks the device's screen size, fits that into one of the supplied breakpoint resolutions, and if the image is already smaller than that resolution, it does nothing except send the source image. Only if the image is larger than that resolution will AI shrink and cache an image.

Heads up: you're not using the Fluid Image technique, and you may want to:

img { max-width: 100%; }

from adaptive-images.

waltercolindres avatar waltercolindres commented on June 15, 2024

The max-width did it! You are awesome! Thank you soooo much!

from adaptive-images.

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.