Comments (9)
I've actually invested quite a bit of time investigating this further and testing possible approaches with using streams, However, as remote files do not support seeking (reading at a specific offset) and one of the biggest impacts will also be the latency for remote files I'm inclined to agree.
So IMHO the quickest and yet best solution is really to just increase the maximum header size for JPEG files. I've also arrived at the point where I seriously have to question who came up with this mess of an image format. 🙃
from fast-image-size.
What version of phpBB 3.2 and this library are you using? There were some issues with previous versions that could result in the mentioned issue.
from fast-image-size.
I'm using PHPBB 3.2.2 (latest), not too sure about the library version, can't find version in code...
from fast-image-size.
Should be the latest version, according to the composer.lock
: https://github.com/phpbb/phpbb/blob/release-3.2.2/phpBB/composer.lock#L348-L349
from fast-image-size.
Right. So, the latest version is failing then. Please find links to images, that are failing, in the ticket description.
from fast-image-size.
Thanks for the report. I was able to reproduce this issue and also circumvent it for now by increasing the max header size for JPEG to 250 kB. I think I'll have to reevaluate to use either guzzle or something simpler to get rid of this restriction of having to increase this setting everytime a bigger jpeg picture comes along.
from fast-image-size.
Hi, I'm having the same problem with this image: https://www.notendiele.de/uploads/gallery/33.jpg
from fast-image-size.
@marc1706 Maybe easy fix (increasing the max header size by 2 or even better by 4) in the meantime?
The bug is quite old, images go ahead by quality/size and phpBB users are facing the issue more often 😃
from fast-image-size.
Hi!
This problem was not solved. I'm facing this problem with PHPBB 3.3 b2 and Fast image size 1.1.5.
Impossible to post this image: https://scooterclub.by/tmp/P90505-140230.jpg. Even changing image size to 786432x1000000.
The result is : It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct.
Best regards.
from fast-image-size.
Related Issues (20)
- Jpeg format not working HOT 4
- Please tag a new release HOT 3
- Retrieve image size info from EXIF IFD if possible HOT 4
- Can't find dimensions for TIFF files HOT 2
- Cannot parse images on localhost HOT 1
- Hidden dependency of mbstring not needed HOT 1
- Do not rely on EXIF IFD image size
- getImageSize() uses file extension over the type
- Support WebP images
- Library fails if the URL of image is redirected (i.e. http to https) HOT 3
- Image size issue for images with wrong extension.
- Add PHP 7.3 builds and remove HHVM
- No valid size info on larger TIFF files
- Long request no timing out
- Long request no timing out
- [phpBB Debug] FastImageSize Failed to open stream HOT 5
- Use autoload-dev to stop polluting autoloader in production use
- Use GitHub Actions for CI
- Memory leak with PHP 8.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 fast-image-size.