Comments (6)
@joeyhoer Error comes from image_size
, I think it will be better to make image_optim
ignore files for which type can't be determined and show warning. Is it possible that you share this jpeg to understand if the problem is in the file or in image_size
and if gem can be enhanced?
from image_optim.
@joeyhoer Please try v0.13.
It will be very helpful if you can share jpeg file causing problems, you can open an issue for image_size gem.
from image_optim.
Unfortunately, upgrading in did not resolve the issue. The attached image is one example of an image which produces this error.
The image is not explicit, however it may be considered NSFW. Image
from image_optim.
@joeyhoer Thanks for the image. Already problematic one: identify
for this image warns identify: Corrupt JPEG data: 12063 extraneous bytes before marker 0xe2 'test.jpg' @ warning/jpeg.c/JPEGWarningHandler/351.
from image_optim.
@joeyhoer Please check with image_size v1.3.1
from image_optim.
Working well, as far as I can tell.
from image_optim.
Related Issues (20)
- incompatible character encodings: UTF-8 and ASCII-8BIT HOT 9
- GPU vs CPU HOT 3
- Extended attribute status already compressed files HOT 4
- [Feature Request] an option to keep tags and comments when optimizing
- `advpng` installed on ubuntu, or OS X via homebrew, _does not_ have a proper version number HOT 14
- Consider OxiPng instead of OptiPNG HOT 2
- Support guetzli
- Specify a temp directory for the temporary files HOT 9
- Invalid cross-device link HOT 10
- After #optimize_image! the image is rotated HOT 1
- Req: Print only the list of optimized images HOT 2
- what are the permissions for here? HOT 3
- jpegoptim worker didn't strip comment HOT 2
- Add support for SVGo 2.x HOT 7
- Work as a pipe
- Don't overwrite by default
- Support webp
- Cannot load YAML config file that uses Range class in Ruby 3.1.x / Psych4.x HOT 2
- Ruby 3.2.0 / Rails 7.0.4 invalid byte sequence in UTF-8 (ArgumentError) HOT 4
- Cannot allocate memory - grep HOT 1
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 image_optim.