Announcement

  •  » Beta testing
  •  » [iOS 2.0] Images with long file names and spaces

#1 2015-03-25 19:34:04

windracer
Member
St. Pete, FL
2014-12-28
448

[iOS 2.0] Images with long file names and spaces

There seems to be a problem with the iOS app displaying images that have long file names with spaces in them.   The thumbnails won't load and if you try to download the image you get the following error:

Download Fail
Failed to download image! unsupported URL

Offline

 

#2 2015-03-25 23:44:39

Hoser
Member
Utah
2015-01-14
88

Re: [iOS 2.0] Images with long file names and spaces

Thanks for the feedback!

Could you post the name of the image(s)?
This will help me test this issue.

Offline

 

#3 2015-03-26 00:05:36

windracer
Member
St. Pete, FL
2014-12-28
448

Re: [iOS 2.0] Images with long file names and spaces

Here are some examples from my screenshots:

2014-03-01 15_33_17.png
Alton Brown autographed tour photo.jpg
Alton Brown Live Meet-and-Greet pass (front).jpg
Alton Brown Live Meet-and-Greet pass (back, autographed).jpg
1986-07-06 Grand Prix.jpg
1990 AOSFB Buckeye Brass.jpg

Offline

 

#4 2015-03-26 05:46:50

Hoser
Member
Utah
2015-01-14
88

Re: [iOS 2.0] Images with long file names and spaces

Thanks.

Unfortunately I can't reproduce this problem. The way the app loads images is from the URL that Piwigo gives it.

The only reason I can think that would cause the thumbnail to not appear and the full size image URL not existing is because the API returned no URL for that image.

I'll add some functionally to show if there's no data/URL for a specific image.

Offline

 

#5 2015-03-26 13:30:58

windracer
Member
St. Pete, FL
2014-12-28
448

Re: [iOS 2.0] Images with long file names and spaces

The URLs look fine, at least when I browse through a normal web browser.

Still trying to figure out a pattern. It looks like maybe it's a long filename combined with a description in Piwigo? Another possibility is that some of these images are not photos (ie., not taken with a camera) but scanned or created in graphics programs. Maybe the lack of EXIF or other "photo-ness" attributes is a contributor?

Finally, does theme choice affect the iOS app? I would guess not but I want to eliminate GreyDragon as a possible source of the issue when viewing my gallery through the mobile app.

Offline

 

#6 2015-03-26 19:07:58

Hoser
Member
Utah
2015-01-14
88

Re: [iOS 2.0] Images with long file names and spaces

If you install build 4, does it display "Error No Data" on the thumbnail?

I have images in my Piwigo that were created in photoshop and they display fine.

Themes shouldn't effect the app unless they change the way the API works, which I doubt many do; but it might be the problem... there's just a lot of factors.

Offline

 

#7 2015-03-26 19:57:16

windracer
Member
St. Pete, FL
2014-12-28
448

Re: [iOS 2.0] Images with long file names and spaces

I've got Build 4 installed, but the missing thumbnails still look the same, just the default gray mountains image, no message about "no data" on them.

Offline

 

#8 2015-03-26 20:12:22

Hoser
Member
Utah
2015-01-14
88

Re: [iOS 2.0] Images with long file names and spaces

In your piwigo web viewer, go to the image and open it in detail. Look at your url and it should look something like this:
{your server URL}/picture.php?/4955/category/3

The 4955 is the image ID (yours should be different). Then with that ID, open a new tab in your browser and navigate to:
{your server URL}/ws.php?format=json&method=pwg.images.getInfo&image_id={imageID}

Replace "{your server URL}" with your Piwigo address and "{imageID}" with the image ID you found earlier.

It should spit out a bunch of text (JSON). Could you give what it spit out to me? This would help a lot!

Offline

 

#9 2015-03-26 20:18:58

windracer
Member
St. Pete, FL
2014-12-28
448

Re: [iOS 2.0] Images with long file names and spaces

E-mail sent with requested sample JSON. Hope it helps! Thanks for looking into this.

Offline

 

#10 2015-03-26 23:36:34

Hoser
Member
Utah
2015-01-14
88

Re: [iOS 2.0] Images with long file names and spaces

Ok. That helped!

It looks like those images are under a "gallery" folder that's normally used for FTP.

-- How did you get a file uploaded in a gallery with spaces in it?

I'll look into this. I think the URL's aren't being transcoded correctly.

Last edited by Hoser (2015-03-26 23:42:18)

Offline

 

#11 2015-03-26 23:59:03

Hoser
Member
Utah
2015-01-14
88

Re: [iOS 2.0] Images with long file names and spaces

Offline

 

#12 2015-03-27 01:12:08

windracer
Member
St. Pete, FL
2014-12-28
448

Re: [iOS 2.0] Images with long file names and spaces

I was a former Gallery 3 user so I imported everything from that into Piwigo. I use physical albums, not virtual ones, so I don't upload anything. I put the images into the folders I want and then synchronize.

Offline

 

#13 2015-04-01 23:19:23

windracer
Member
St. Pete, FL
2014-12-28
448

Re: [iOS 2.0] Images with long file names and spaces

Confirming this is fixed in Build 5, thanks!

Offline

 
  •  » Beta testing
  •  » [iOS 2.0] Images with long file names and spaces

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact