Adding pictures?

Talk about anything and everything here within reason.
thanar   1 mW

1 mW
Posts: 10
Joined: Feb 28 2018 5:12am

Re: Adding pictures?

Post by thanar » Jul 05 2018 2:08am

Are there any other limitations to uploading pictures, besides pixel count size and file size? I can't seem to be able to upload, no matter what I try. I always get a notice icon at the attachment table, and clicking on it give out the information "Could not upload attachment to ./files/57805_60b1e5a920f263fa59e00737a86ee036.", or some other random filename.

mark5   100 kW

100 kW
Posts: 1171
Joined: Dec 28 2011 9:26pm
Location: USA

Re: Adding pictures?

Post by mark5 » Jul 05 2018 2:43am

I had the same problem this afternoon except it was on uploading a .zip file as an attachment. Happened after this website had come back up after being down. Maybe these are symptoms of the same problem?

Just tried it again & got error msg:
Error

Could not upload attachment to ./files/23604_606be864bb9c1351b13328550887bb7e.

User avatar
wturber   100 kW

100 kW
Posts: 1335
Joined: Aug 23 2017 8:52pm
Location: Fountain Hills,AZ
Contact:

Re: Adding pictures?

Post by wturber » Jul 05 2018 3:47am

Yeah. Verified. Having the same issue right now.
"Commuter - DC Booster"
Iron Horse 3.0 hardtail - 48V / 1000W / 470rpm generic Chinese DD Hub motor (ebay)
8 x 36v 4.3ah 10s 2P battery packs - 1500W 30A DC Boost Converter delivers 54v and about 1000 watts peak
53T/42T Sakae Road cranks - 30mph+ on flats
viewtopic.php?f=2&t=90369

User avatar
neptronix   100 GW

100 GW
Posts: 12707
Joined: Jun 15 2010 5:56pm
Location: California refugee living in Utah, USA
Contact:

Re: Adding pictures?

Post by neptronix » Jul 05 2018 7:28am

Sorry guys, we got DDOSed yesterday and i tightened up system permissions a little too far :lol:
This is fixed. Let me know if you are still having problems.
My first major build: 8T MAC motor on a Trek 4500.
The new all-arounder: Leafmotor 1500w on a Turner O2 full suspension.
The wheelie machine: 20" Rear Magic Pie II on a Trek 4300 MTB

"The best time to plant a tree was 20 years ago. The second best time is now."- Chinese Proverb

User avatar
usertogo   10 W

10 W
Posts: 90
Joined: Nov 19 2014 9:31am

Re: Adding pictures?

Post by usertogo » Jul 05 2018 7:36am

I wasn't able to upload pictures couple of minutes ago.... Tiny 120kB pics...

Correction, I tried again and now it worked!

User avatar
EddySPalm   10 W

10 W
Posts: 90
Joined: Mar 30 2017 6:12am
Location: Drammen, Norway

Re: Adding pictures?

Post by EddySPalm » Dec 12 2018 1:29am

I have been trying to post photos by uploading from a folder on my computer lately, same way and same folder as always, but suddenly I get an error saying
It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct.
But I am not doing anything differently from earlier? The pictures are resized to spec, I've tried the drag and drop function, the upload button and so on...

Edit: To add to the issue I have now done a trial upload with previously uploaded photos, and that works just fine! But again, I am doing everything like I always have (or at least I think so), and the photos are even taken with the same phone!

User avatar
marty   10 MW

10 MW
Posts: 2098
Joined: Apr 19 2007 5:44pm
Location: Buffalo, New York USA
Contact:

Re: Adding pictures?

Post by marty » Dec 12 2018 7:42am

test
Attachments
rocket_bike600.jpg
rocket_bike600.jpg (67.37 KiB) Viewed 97 times
MARTY
Volt Electric Vehicles
http://www.voltev.com

User avatar
marty   10 MW

10 MW
Posts: 2098
Joined: Apr 19 2007 5:44pm
Location: Buffalo, New York USA
Contact:

Re: Adding pictures?

Post by marty » Dec 12 2018 7:48am

It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct.
Somethings not right with your new photos. URL is Uniform Resource Locator. That be the address of a World Wide Web page.
MARTY
Volt Electric Vehicles
http://www.voltev.com

User avatar
EddySPalm   10 W

10 W
Posts: 90
Joined: Mar 30 2017 6:12am
Location: Drammen, Norway

Re: Adding pictures?

Post by EddySPalm » Dec 12 2018 8:53am

I understand that, though I was hoping that someone would understand what is wrong with the pictures as, like I said, I have done nothing differently from before. The pictures are taken with the same phone, uploaded to the same dropbox folder, resized to correct sizes etc.

I guess the reason the alert says something about the correctness of a URL is that I am uploading from a dropbox folder? Since if I was uploading from a local folder, it would be an URL at all? Either way, still, nothing has changed on my part...

Edit: I just tried to upload from a local folder on my computer, which also gave the same error message, so it has nothing to do with using dropbox.

User avatar
marty   10 MW

10 MW
Posts: 2098
Joined: Apr 19 2007 5:44pm
Location: Buffalo, New York USA
Contact:

Re: Adding pictures?

Post by marty » Dec 12 2018 12:09pm

In my signature you will see the address of a web site. Go there:
http://www.voltev.com/
At voltev.com you will see a email address. Email me a picture and I will do some diagnostics.
MARTY
Volt Electric Vehicles
http://www.voltev.com

User avatar
marty   10 MW

10 MW
Posts: 2098
Joined: Apr 19 2007 5:44pm
Location: Buffalo, New York USA
Contact:

Re: Adding pictures?

Post by marty » Dec 12 2018 6:49pm

OK got your picture, transmitted by email. See size is 5504x3096. That is way big. File size is 5.58 MB. I open picture with Adobe Photoshop. Image / Image Size... Change width to 800 because I like the number 800. New image size is now 800x450. File / Save As... Rename DSC_1388_800x450.jpg File size is now 90.9 KB

There are lots of other programs besides Photoshop to reduce picture size. Look at the programs ya got in your computer and I bet ya have something.

Attachments / Add files

Why is the clear plastic so thick? Is it heavy? Is this for a electric bicycle? I like my electric bicycles as light as possable because I am always lifting them into a truck or up and down stairs.
Attachments
DSC_1388_800x450.jpg
DSC_1388_800x450.jpg (90.98 KiB) Viewed 73 times
MARTY
Volt Electric Vehicles
http://www.voltev.com

User avatar
EddySPalm   10 W

10 W
Posts: 90
Joined: Mar 30 2017 6:12am
Location: Drammen, Norway

Re: Adding pictures?

Post by EddySPalm » Dec 13 2018 2:52am

Marty, thank you so much! BUT! I managed to send you the non resized version, crap!

I'm gonna have another go at it... If you're still willing to help me.

Edit: Just sent you another picture. I do just the same as you're syaing; resize to 800 width, save as, and so on...

You'll see from the next photo that I am not building an e-bike, but a scooter.

The thick plastic is so I can screw the main walls of the battery pack directly into the "thin" part of the thick plastic...

User avatar
marty   10 MW

10 MW
Posts: 2098
Joined: Apr 19 2007 5:44pm
Location: Buffalo, New York USA
Contact:

Re: Adding pictures?

Post by marty » Dec 13 2018 9:08am

Confirmed. Something is not right with the picture of the scooter. I got the same error.
Error
It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct.
No idea what the problem is? As a work around, I took the image into Photoshop. File / Save As... Save as type: Photoshop .psd Then save as .jpg
Attachments
2018-11-26 22.17.34 - Copy.jpg
2018-11-26 22.17.34 - Copy.jpg (111.65 KiB) Viewed 61 times
MARTY
Volt Electric Vehicles
http://www.voltev.com

User avatar
neptronix   100 GW

100 GW
Posts: 12707
Joined: Jun 15 2010 5:56pm
Location: California refugee living in Utah, USA
Contact:

Re: Adding pictures?

Post by neptronix » Dec 13 2018 10:57am

You do not need to resize any images in order to upload them here. That's an artifact of the past.

But you do need to upload them in png, jpg, or gif format.

If the system tells you it cannot determine the size of the image, it probably can't understand the format of the file.
My first major build: 8T MAC motor on a Trek 4500.
The new all-arounder: Leafmotor 1500w on a Turner O2 full suspension.
The wheelie machine: 20" Rear Magic Pie II on a Trek 4300 MTB

"The best time to plant a tree was 20 years ago. The second best time is now."- Chinese Proverb

mark5   100 kW

100 kW
Posts: 1171
Joined: Dec 28 2011 9:26pm
Location: USA

Re: Adding pictures?

Post by mark5 » Dec 13 2018 12:13pm

neptronix, is it possible any of these two issues could be in play here? The first one persists in 3.2.2 & needs editing to fix.
https://www.phpbb.com/community/viewtopic.php?f=556&t=2433446&start=30#p14941906 wrote:
Re: It was not possible to determine the dimensions of the image
Post by AmigoJack » Mon Feb 19, 2018 8:02 am

Well, maybe all of you are mixing up different issues: Problem with uploading large jpg files after update 3.2.2 and Error with Picture resulotion on Upload.
https://www.phpbb.com/community/viewtopic.php?f=556&t=2455356#p14914301 wrote: Re: Problem with uploading large jpg files after update 3.2.2
Post by AmigoJack » Thu Jan 18, 2018 11:58 am

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.
^ In his next post he suggests fixing it by increasing the jpeg max header size.
https://www.phpbb.com/community/viewtopic.php?f=556&t=2445676#p14864301 wrote: Re: Error with Picture resulotion on Upload
Post by AmigoJack » Mon Nov 13, 2017 9:44 am

There are multiple problems:
a. The picture itself is correct, but has EXIF data which seems to be from the original file, not this 150x150px version. EXIF data is (amongst other):
[...]
b. phpBB wants to be smart at detecting the dimensions, but fails (
again). It trusts the EXIF data more than the SOF0 segment, although the latter correctly tells us width and height and is more trustworthy.
This comes from /vendor/marc1706/fast-image-size/lib/Type/TypeJpeg.php which has a wrong order of checks:
[...]
c. Avoid software which breaks JPEG standards and/or mistreats EXIF data (anything from Adobe, which can be seen in the XMP metadata:
If you want to "repair" your picture then
Open it in your favorite image editor (mostly thru CTRL+O), then either
copy it to the clipboard (the picture's 150x150px canvas, not the file - this means to most editors CTRL+A, then CTRL+C),
create a new file with the same dimensions (mostly CTRL+N),
paste your clipboard content (mostly CTRL+V),
save the file (mostly CTRL+S).
...or save the file in a different format (PNG, GIF, BMP...).
That way the metadata will not be copied (in case you choose JPEG as format again you'll notice a big difference in the filesize) and phpBB will finally recognize the correct dimensions.
Under "b." he shows the faulty code that gives exif header, vs SOF0, precedence on size check then suggests a fix on the next page.

User avatar
EddySPalm   10 W

10 W
Posts: 90
Joined: Mar 30 2017 6:12am
Location: Drammen, Norway

Re: Adding pictures?

Post by EddySPalm » Dec 14 2018 4:54am

I have now tested the following, with a JPG format picture that gave me the same error message as above:

1. Original state: JPG, not resized. Error message: File too big
2. Kept JPG format, but resized to 800x1422 width x height. Error message: not possible to determine the dimensions of the image
3. Saved as PNG format, not resized. Error message: File too big
4. Saved as PNG, but resized to 800x1422 width x height. Error message: not possible to determine the dimensions of the image

Edit: Tried now with another JPG photo in its original format and shape (state number 1), and now I got the error message not possible to determine the dimensions of the image, so I am really confused at the moment.

Strange!

User avatar
marty   10 MW

10 MW
Posts: 2098
Joined: Apr 19 2007 5:44pm
Location: Buffalo, New York USA
Contact:

Re: Adding pictures?

Post by marty » Dec 14 2018 9:04am

Original picture EddySPalm sent me.
DSC_1388.JPG
5504x3096
5.58 MB.
Error
It was not possible to determine the dimensions of the image. Please verify that the URL you entered is correct.

Confirmed. Something has gone wrong between EddySPalm's camera and the upload procedure with this forum. Neptronix, good luck building a forum to work with every camera, phone and computer on planet earth. I would tell EddySPalm to try a different camera or phone. Or do what I did.

Take the image into Photoshop. File / Save As... Save as type: Photoshop .psd Then save as .jpg
MARTY
Volt Electric Vehicles
http://www.voltev.com

User avatar
marty   10 MW

10 MW
Posts: 2098
Joined: Apr 19 2007 5:44pm
Location: Buffalo, New York USA
Contact:

Re: Adding pictures?

Post by marty » Dec 14 2018 9:13am

neptronix wrote:
Dec 13 2018 10:57am
You do not need to resize any images in order to upload them here. That's an artifact of the past.
My chickens are eating salad.
DSC00754.JPG
4896x3672
6.41 MB
Error
The file is too big, maximum allowed size is 512 KiB.

Resize with Photoshop.
DSC00754_1600x1200.JPG
1600x1200
332 KB
Attachments
DSC00754_1600x1200.JPG
MARTY
Volt Electric Vehicles
http://www.voltev.com

User avatar
neptronix   100 GW

100 GW
Posts: 12707
Joined: Jun 15 2010 5:56pm
Location: California refugee living in Utah, USA
Contact:

Re: Adding pictures?

Post by neptronix » Dec 14 2018 10:49am

Well, that is awfully strange. The maximum file size is set to 10mb.

Here.. have a huge 1.7mb photo.
IMG_20181123_181412.jpg
My first major build: 8T MAC motor on a Trek 4500.
The new all-arounder: Leafmotor 1500w on a Turner O2 full suspension.
The wheelie machine: 20" Rear Magic Pie II on a Trek 4300 MTB

"The best time to plant a tree was 20 years ago. The second best time is now."- Chinese Proverb

Post Reply