Git Product home page Git Product logo

Comments (9)

marc1706 avatar marc1706 commented on July 29, 2024 1

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.

marc1706 avatar marc1706 commented on July 29, 2024

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.

kastashov avatar kastashov commented on July 29, 2024

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.

jdreesen avatar jdreesen commented on July 29, 2024

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.

kastashov avatar kastashov commented on July 29, 2024

Right. So, the latest version is failing then. Please find links to images, that are failing, in the ticket description.

from fast-image-size.

marc1706 avatar marc1706 commented on July 29, 2024

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.

tinogo avatar tinogo commented on July 29, 2024

Hi, I'm having the same problem with this image: https://www.notendiele.de/uploads/gallery/33.jpg

from fast-image-size.

rxu avatar rxu commented on July 29, 2024

@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.

FernandoGarcia avatar FernandoGarcia commented on July 29, 2024

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)

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.