Problem with uploading large jpg files after update 3.2.2

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
PaulusB
Registered User
Posts: 230
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Problem with uploading large jpg files after update 3.2.2

Post by PaulusB »

URL forum: https://www.volkswagen-forum.nl
Extensions on my forum:
24 hour activity stats 1.0.5
Add User 1.0.4
Advanced BBCode Box 3.1.4
Feed post bot 1.0.1
Google Analytics 1.0.3
New window for external links 1.1.0n
SEO Sitemap 0.2.0
SiteSplat BBCore 3.0.0
Stop Forum Spam 1.1.8
Tapatalk Plugin for phpBB 3.1/3.2 2.0.5
VigLink 1.0.2
Style: Flatboots
phpBB version: 3.2.2

After the update from 3.2.1 to 3.2.2 i'm having problems with uploading JPG files.

If i upload a large jpg 4.7MB file i get the following error. The photo is made with a new android 7.0 phone.
error It was not possible to determine the dimensions of the image. Make sure the URL you entered is correct.
If i upload a smaller jpg file 200kb i get no error.

I have the same message on both templates. The upload max size on the forum is 5MB in the php ini 1024mb if set the upload in the forum to 0 mb the message is also there.

If a disable the bbcode box the message is also there. I also replaced al the phpbb root files with fresh ones but the message is also there.

Running on PHP Version 7.1.13

Does anybody knows how to solve this problem.
User avatar
AmigoJack
Registered User
Posts: 5779
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack »

Can you attach said picture to this topic?
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
axe70 wrote:
Sat Oct 10, 2020 6:52 pm
But this shit is not here for you. You can follow with your.
Maybe the question, instead, was for you, who know, so you shoved us how you are.
User avatar
PaulusB
Registered User
Posts: 230
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB »

With this jpg i have the same problem.

https://s13.postimg.org/df6bwjjs7/IMG-2 ... WA0002.jpg

If i upload It to this forum i have the same problem.
Last edited by PaulusB on Wed Jan 17, 2018 6:38 pm, edited 1 time in total.
User avatar
PaulusB
Registered User
Posts: 230
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB »

Screenshot_20180117-193627.png
User avatar
AmigoJack
Registered User
Posts: 5779
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack »

phpBB analyzes JPEG files only by looking at its first 124.576 bytes, and the segment holding the dimension information in your file would need to parse/seek 1.032.406 bytes. I have no clue why phpBB has still not understood how JPEG files can look like and dimension information can still be quite at the end of a file.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
axe70 wrote:
Sat Oct 10, 2020 6:52 pm
But this shit is not here for you. You can follow with your.
Maybe the question, instead, was for you, who know, so you shoved us how you are.
User avatar
PaulusB
Registered User
Posts: 230
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB »

The bug should solved according older topics and the bug tracker. How can i solve this can i import a old library form php 3.2.0 ?
User avatar
AmigoJack
Registered User
Posts: 5779
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack »

No, this "bug" persisted in 3.2.1 and 3.2.0 already. What you refer to had (a) different culprit(s).

You can fix it yourself by opening /vendor/marc1706/fast-image-size/lib/Type/TypeJpeg.php and finding:

Code: Select all

	const JPEG_MAX_HEADER_SIZE = 124576;
and changing it to a size you feel comfortable with (i.e 10* 1024* 1024 for scanning up to 10 MiB).
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
axe70 wrote:
Sat Oct 10, 2020 6:52 pm
But this shit is not here for you. You can follow with your.
Maybe the question, instead, was for you, who know, so you shoved us how you are.
User avatar
PaulusB
Registered User
Posts: 230
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB »

AmigoJack wrote:
Thu Jan 18, 2018 1:44 pm
No, this "bug" persisted in 3.2.1 and 3.2.0 already. What you refer to had (a) different culprit(s).

You can fix it yourself by opening /vendor/marc1706/fast-image-size/lib/Type/TypeJpeg.php and finding:

Code: Select all

	const JPEG_MAX_HEADER_SIZE = 124576;
and changing it to a size you feel comfortable with (i.e 10* 1024* 1024 for scanning up to 10 MiB).
Like so?

Code: Select all

const JPEG_MAX_HEADER_SIZE = 10* 1024* 1024;
User avatar
AmigoJack
Registered User
Posts: 5779
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by AmigoJack »

Yes.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
axe70 wrote:
Sat Oct 10, 2020 6:52 pm
But this shit is not here for you. You can follow with your.
Maybe the question, instead, was for you, who know, so you shoved us how you are.
User avatar
PaulusB
Registered User
Posts: 230
Joined: Sun May 28, 2006 2:08 pm
Location: Holland
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by PaulusB »

Thanks u very much solved my problem for now til next update.
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: Problem with uploading large jpg files after update 3.2.2

Post by Exabot »

This change in server side resize no works. Picture uploaded original size. Ideas to fix it?
User avatar
janus_zonstraal
Registered User
Posts: 4852
Joined: Sat Aug 30, 2014 1:30 pm

Re: Problem with uploading large jpg files after update 3.2.2

Post by janus_zonstraal »

Exabot wrote:
Sat Dec 22, 2018 5:56 pm
This change in server side resize no works. Picture uploaded original size. Ideas to fix it?
Update to phpbb3.2.4 ;)
Sorry! My English is bat ;) !!!
User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 51583
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by stevemaury »

Update to 3.2.5.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)
Exabot
Translator
Posts: 211
Joined: Sun Jan 18, 2015 8:21 pm
Location: Estonia

Re: Problem with uploading large jpg files after update 3.2.2

Post by Exabot »

Yes, thanks! Maybe help.. :)
User avatar
Kot Matroskin
Registered User
Posts: 126
Joined: Sat May 29, 2010 9:44 am
Location: Minsk, Belarus
Name: Vitaly Filatenko
Contact:

Re: Problem with uploading large jpg files after update 3.2.2

Post by Kot Matroskin »

Unfortunately, I also encountering with this kind of error for some jpeg images (created by Meizu mobile). It is reproducible on my 3.2.5, and as I can see it is also reproducible on this forum as well (I can't upload the image into this topic).

The solution with editing TypeJpeg.php file works fine, but I'm not sure that modifying core files is good approach.

So, does anybody can say when the issue will be fixed officially, in which phpBB release?

P.S. You can download problematic picture from this location: https://scooterclub.by/tmp/P90505-140230.jpg
Post Reply

Return to “[3.2.x] Support Forum”