PhotoSphereStudio icon indicating copy to clipboard operation
PhotoSphereStudio copied to clipboard

error 400

Open manhoos69 opened this issue 2 years ago • 7 comments

guys please help me idk what to do when i upload photo it appear my photos are 360 i sure. F46119DE-1017-47CD-9B10-0B724E6C9D71

manhoos69 avatar Oct 16 '23 15:10 manhoos69

How did you take the photos?

alexiscoutinho avatar Oct 17 '23 02:10 alexiscoutinho

How did you take the photos?

i used an app named HDReye on iPhone it takes 360 photos im sure they are 360.

manhoos69 avatar Oct 17 '23 11:10 manhoos69

Could you send it here?

alexiscoutinho avatar Oct 17 '23 13:10 alexiscoutinho

Could you send it here?

F84942A4-347B-402E-83D3-4B16C407BEE9

it is 9mb in original pic.don’t worry about resolution and quality👍🏽

manhoos69 avatar Oct 17 '23 13:10 manhoos69

I wanted to try uploading it with another program to test if the problem wasn't with the image, so I needed the original photo. Alternatively, you could check the photo's metadata with exiftool. It should contain metadata like this:

Use Panorama Viewer             : True
Projection Type                 : equirectangular
Cropped Area Image Height Pixels: 4682
Cropped Area Image Width Pixels : 10752
Full Pano Height Pixels         : 5376
Full Pano Width Pixels          : 10752
Cropped Area Top Pixels         : 0
Cropped Area Left Pixels        : 0
First Photo Date                : 2023:03:01 17:18:17.548Z
Last Photo Date                 : 2023:03:01 17:19:50.3Z
Source Photos Count             : 30
Pose Heading Degrees            : 8.0

alexiscoutinho avatar Oct 18 '23 00:10 alexiscoutinho

@manhoos69 Try downloading exiftool and running .\exiftool.exe -UsePanoramaViewer=true -ProjectionType=equirectangular FILE.jpeg

moom0o avatar Mar 09 '24 23:03 moom0o

I'm getting the same error on an image. Initially I tried uploading the largest jpeg I could (104.6 MB). Thinking it might be a filesize issue (even though that's not reported in the error message) I tried smaller sizes. A 50% version (25.7), and finally a 25% at 6.5 MB.

exiftool reports the following for all images (metadata is kept intact across resizing). Here is the report for the full size image:

Use Panorama Viewer : True Cropped Area Image Height Pixels: 9355 Cropped Area Image Width Pixels : 18710 Full Pano Width Pixels : 18710 Full Pano Height Pixels : 9355 Projection Type : equirectangular

Attached is a 25% version of the image:

DJI_0001_DJI_0026-edit-25

debug gives the following:

{ "error": { "code": 400, "message": "The image is not a 360 photo.", "status": "INVALID_ARGUMENT", "details": [ { "@type": "type.googleapis.com/google.rpc.ErrorInfo", "metadata": { "EXTERNAL_MESSAGE": "The image is not a 360 photo." } } ] } }

ckoerner avatar Sep 02 '24 18:09 ckoerner

For @manhoos69 and @ckoerner:

I was able to upload your photos by changing a few flags, it seems that Google doesn't like if you downscale the resolution.

.\exiftool.exe -CroppedAreaImageWidthPixels=4677 -CroppedAreaImageHeightPixels=2338 -FullPanoWidthPixels=4677 -FullPanoHeightPixels=2338 .\363772727-72cd9259-dde7-4220-a12b-5eb90cd60983.jpg

I recommend instead of cropping, use paint.net to compress the jpeg, Google has a max filesize of 75mb, so you could do 98 or 99% compression and get it below 75mb.

moom0o avatar Nov 17 '24 17:11 moom0o