Comments (6)
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.
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.
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.
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.
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.
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)
- video is not showing on website with cloudflare r2 HOT 2
- Critical error "Uncaught Error: Call to undefined function trailingslashit()" after updating plugin to 4.5.15 HOT 4
- installing premium version via composer: an ETA ? HOT 2
- Incorrect file url, the id is missing from the url
- Filter for images by name so that they are not uploaded to the cloud
- Renamed assets won't upload to Cloudflare R2
- Path of CDN domain is stripped when in private mode (and credential are sent in admin) HOT 2
- Disabling plugin breaks site HOT 2
- Interfacelab is dead, I think
- Image URL is encoded when used with Yoast SEO sitemaps
- Issues after installing PHP 8.2 and MediaCloud HOT 4
- Here are the Errors Media Cloud is creating in WP Engine. How do I fix this.
- Bought your plugin and you have not supported the pro plugin
- Slow site load after plugin activation HOT 2
- Meta value for _wp_attached_file contains site/{siteID} causing issues after direct upload to WP media gallery
- PHP version 8.2.10 compatibility HOT 1
- Disable update custom prefix to _wp_attached_file
- The issue is with creating unnecessary folders HOT 1
- Issue with Creating a Folder in the Root Directory HOT 2
- Mux API error, can't upload videos to Mux. (Or Mux is unable to download video from R2)
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 ilab-media-tools.