GithubHelp home page GithubHelp logo

Comments (6)

JulienMelissas avatar JulienMelissas commented on July 21, 2024

Just wanted to weigh in again... I went back to 2.1.9 instead of my fix posted above and product images are working again. If I can take a look at this tomorrow maybe I'll be able to submit a PR. It's just hard to navigate since I didn't write the plugin itself.

Thanks for your continued work on this plugin, we're loving Imgix and serving well over 2m images a month. The last few updates def. cleared up a few bugs. 🍻

from ilab-media-tools.

tapetersen avatar tapetersen commented on July 21, 2024

I can confirm that there is some regression regarding thumbnail sizes that has 1 dimension set to 0. This should normally be handled by ignoring that dimension and just calculate the ratio based on the other one. I'll see if I can bisect down the issue and fix it.

from ilab-media-tools.

tapetersen avatar tapetersen commented on July 21, 2024

Ok there seems to be 2 issues, the first one that breaks proportional resizing with 1 parameter set to 0 was introduced in ecb5c31. Havn't checked details but it causes them to be completely square instead, It's a bit complicated to see what it was trying to solve but I'll try to see if I can understand. After that another change Made the images disappear completely (generated 0, height and width). Will bisect for that as well.

from ilab-media-tools.

tapetersen avatar tapetersen commented on July 21, 2024

Ok looks like the main error was replacing the logic for $sizeInfo['width'] ?: 10000 with (isset($sizeInfo['width'])) ? $sizeInfo['width'] : 10000 which fails for a width set explicitly to 0 or "0" which should behave the same (according to wordpress's implicit rules) and has before. There has been some more modifications since then so I will try to write an updated PR (there is another bug like it for the crop value set explicilty to false but that is corrected in the later versions already).

from ilab-media-tools.

jawngee avatar jawngee commented on July 21, 2024

Great catch thanks!

I actually came across this bug testing out WooCommerce because people had been reporting issues. I never use the Woo so my testing was probably pretty limited.

from ilab-media-tools.

michaeljberry avatar michaeljberry commented on July 21, 2024

Thanks for working on a fix to this. I see that you committed the fix, but I don't know the timeframe or process for plugins to be updated on WordPress' servers. Do you know when this fix will be available to update?

from ilab-media-tools.

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.