Git Product home page Git Product logo

Comments (7)

germyparker avatar germyparker commented on June 17, 2024 1

I'd like to give it a shot! But no promises - I'm not entirely sure I'll be able to figure out why it's happening.

from qwik-image.

gioboa avatar gioboa commented on June 17, 2024

Thanks for your report 👍 would you like to drop a PR for that?

from qwik-image.

gioboa avatar gioboa commented on June 17, 2024

@germyparker did you find something?

from qwik-image.

germyparker avatar germyparker commented on June 17, 2024

Sorry, it's been a crazy few months - I did have a chance to look, and I was able to understand approximately how it works - up until - but not including - how the actual image derivative is created. imageTransformer$ accepts the source, the breakpoints, and the height (calculated via breakpoints / ratio / original w,h), and sends it to..the QRL.

I read up on QRLs in general - but I won't pretend like I understood, and while I think this is the magic that makes it happen, I wasn't able to understand how and where the .webp file is created.

I've done a decent amount of image derivative creation, including dealing with gif/animated webp fails, but I've always done it via bash+imagemagick, so I'm hoping that experience will come in handy, but I feel like I'm fundamentally misunderstanding something important about the flow - it all makes sense until - poof - the image derivative is created! And I have no idea how.

So yeah - can you point me in the direction of the conversion? Or, if I'm misunderstanding something, can you point me in the direction of where you think the problem might be?

Again - sorry for the delay - I should've asked this when I was looking into it, but life's been tossing me around like a frisbee!

from qwik-image.

gioboa avatar gioboa commented on June 17, 2024

I think the main problem here is that we are using srcset with gif images. 🤔 The transformer is only changing the image URL nothing more than that. The transformation is done by the external service. You can check if is gif or not and just return your local website URL

from qwik-image.

germyparker avatar germyparker commented on June 17, 2024

I traced it a bit further just now, and found vite-imagetools doing the conversion - and that's where the problem is. There a couple of issues/PRs in vite-imagetools about this issue - it looks like it will be possible to make this happen in qwik-image, but not until it's implemented at imagetools.

The solution will (probably?) take the form of a bool "animated" flag that gets passed in - not sure if qwik-image will be able to read that automagically or if the user will have to declare it - but I guess we'll have to see how it's handled on that end. Despite not being able to fix it, I appreciate you giving me the nudge to pursue it!

from qwik-image.

gioboa avatar gioboa commented on June 17, 2024

Thanks for your commitment 😊

from qwik-image.

Related Issues (5)

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.