Image upload problem

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
sakm
Registered User
Posts: 713
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Image upload problem

Post by sakm »

I have a member of my forum struggling to upload an attachment to my board

I have never had any problems on 3.1 but I have just upgraded to 3.2 and now using php 7

All php settings are the same as before as are all attachment settings

when he tries to upload the photo he gets an error

"It was not possible to determine the dimensions of the image. Make sure the URL you entered is correct"

The photo was taken on his mobile phone he has two photos that are the same except the orientation one is vertical and one horizontal the horizontal is the troublesome one!

I have the image emailed to me and I have tried to re size it with no difference at all

If I save the image to bmp or png it will work fine if I then re save either bmp or png back to jpg it will then upload

I have seen this thread and bug relating to photoshop and was wondering if its related

viewtopic.php?f=556&t=2407186

https://tracker.phpbb.com/browse/PHPBB3-15103

Thanks
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: Image upload problem

Post by Mick »

Since you've moved to 3.2 and from PHP whatever to PHP 7 I'd be inclined to ask your host if the new PHP installation has resulted in changes in php.ini in particular upload_max_filesize and post_max_size from your previous PHP version. You can check it yourself in PHP information in the ACP if you knew what it was set to previously. A lot of hosts have a default 2Mb upload limit controlled by the php.ini file.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
sakm
Registered User
Posts: 713
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Re: Image upload problem

Post by sakm »

Thanks for the reply Mick

I am on a VPS so I have full control and all settings are right with php pretty much exactly the same as when I was using 5.6

I also resized the image to as little as 498KB and 1291x968 pixels and it still produced the same error

max file size is set at 8mb as is max post size
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: Image upload problem

Post by Mick »

Try bumping it up to 50 if you can and see what happens.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
sakm
Registered User
Posts: 713
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Re: Image upload problem

Post by sakm »

Just tried that and its still exactly the same
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: Image upload problem

Post by Mick »

Hmm, ok then, it could well be to do with the tracker report.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
sakm
Registered User
Posts: 713
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Re: Image upload problem

Post by sakm »

I wonder if its something to do with the way the new samsung s8+ takes and saves photos!

I can take larger photos on my phone and attach them with no issues! both phones run the same operating system and also using chrome as the browser

I would say I have narrowed it to a file issues due to the fact that I have the file emailed to me and using different browsers makes no difference but saving the file as a bmp or png and then saving it back to a jpg again resolves the issue but just saving the file as another jpg with a different name the problem persists :?
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: Image upload problem

Post by Mick »

sakm wrote: Sun May 28, 2017 11:33 amI wonder if its something to do with the way the new samsung s8+ takes and saves photos!
Maybe. Open up any of the images giving you problems in Paint.NET or similar and save them as something else (gif, png or jpg) and see what happens.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
sakm
Registered User
Posts: 713
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Re: Image upload problem

Post by sakm »

I setup a test board and downloaded the changed files from the bug tracker and tested that way

with the new files everything works fine so on that conclusion I would say its part of that bug :)

I have already opened them in paint and saved them as bmp and png and this allows them to be uploaded saving from bmp or png back to jpg allows them to be uploaded too

but trying to save from jpg to jpg with a different name the files will still not work
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: Image upload problem

Post by Mick »

Saving them from oldname.jpg to newname.jpg won't re-write the image, unless it has been edited, it will just copy it with the new name.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
sakm
Registered User
Posts: 713
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Re: Image upload problem

Post by sakm »

when you say editing does that include a resize? because that made no difference either
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26508
Joined: Fri Aug 29, 2008 9:49 am

Re: Image upload problem

Post by Mick »

It should but to be sure save it as a different type and see what happens.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
sakm
Registered User
Posts: 713
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Re: Image upload problem

Post by sakm »

I have already done all that Mick

Save it as bmp or png it will upload fine

if you then save either the bmp or png back to jpg it will upload fine

Its just the original image with no amount of resizing it will not upload at all

New updated files that are to be included in 3.2.1 and the original image will upload with no problems :)
User avatar
boatbuilder2000
Registered User
Posts: 26
Joined: Tue Jun 14, 2016 11:42 pm
Location: Lowestoft Suffolk UK
Name: John
Contact:

Re: Image upload problem

Post by boatbuilder2000 »

Was the issue in this topic ever resolved because I occasionally have the same problem and now one of my forum members has just reported a similar issue? I find that resizing a .jpg image slightly and resaving can resolve the issue. Both myself and the other member use 'Irfanview' for resizing our images.

I am running phpBB 3.2.8. and PHP Version is 5.5.22.
focp
Registered User
Posts: 47
Joined: Mon Feb 15, 2016 10:59 am

Re: Image upload problem

Post by focp »

not sure if this is related to your problem or not, but we had a similar issues some time ago,
which turned out to be the Exif data for the image being the cause of it ! (cant remember the details though)
which the poster of the image solved by removing the image properties from the image,
(open the images properties/details/remove properties and personal information - and select the create a copy with all possible properties removed option )
as i say it may not be the answer, but it worked in our case :)
Post Reply

Return to “[3.2.x] Support Forum”