The place to discuss how to make 23 work in special ways with the 23 api

Programmatically replacing an image

Th Clvr Mnky   January 18, 2011, 03:46 AM

I'm finally working on a Lightroom publish service for 23, and I can get basic uploads working via a multipart POST to /services/upload/

But /services/replace is not supported. I know about the /[username]/photo/[photo_id]/replace form trick. Can I leverage this programmatically?

What are people doing to semi-support the replace functionality?

[Later]

Oh, I guess I can submit the POST directly, making sure I specify the path to the photo_file in the headers.

 
Steffen Fagerström Christensen Team 23   January 18, 2011, 09:08 AM

You're using /services/upload/ and the Flickr API to begin with? In that case, it probably makes better sense for us to simply add support for /service/replace/ -- would that work on your end?

 
Th Clvr Mnky   January 18, 2011, 03:20 PM

Yes please!

I know replacing an image might seem weird or unwanted behaviour, but it is very common to use online services as a live repository, and have an app that maintains this state, synchronizing things like comments, keywords and so on. This means we can do neat things like republish export images as we tweak them, or change select metadata.

So, this might also affect your policy of not updating (for example) EXIF data on replace. But I'd be satisfied if I could map the EXIF/IPTC Caption to the title of the image, and /maybe/ sync keywords. Though my app can't do the latter, yet.

Ideally, I want to be able to let you manage Collections and Albums via the app, as well.

My app won't grab existing photos hosted on 23 and manage them. It will provide a "publish service" to Lightroom for drag and drop and push-button publish to a 23 account it gets permissions to via the web page authentication.

Oh, and by the way, I borrowed the little "23" image from the 23 blog and used that to brand my app in the Lightroom UI. I assume this is considered fair use? Is there official brand collateral I should be using?

 
Steffen Fagerström Christensen Team 23   January 22, 2011, 05:04 PM

You got it: You'll now be able to use http://www.23hq.com/services/replace in much the same way as described at http://www.flickr.com/services/api/replace.api.html. The API method makes use of the same internal mechanism to do image replaces the /[username]/photo/[photo_id]/replace form, so you'll be getting the same behaviour when it comes to iptc/exif.

I've put an official logo package online at http://www.23company.com/logos/23.zip -- and of course you can use the logo ;-)

Am really looking forward to seeing your app up and running...

 
Th Clvr Mnky   January 25, 2011, 01:29 AM

Excellent. I'll probably get my replace stuff done tonight, so the basic export/update functionality will be done.

 




About 23

About 23
What is 23 and who's behind the service?
Just In
Discover the world from a different angle.
Here's a crop of the latest photos from the around the world.
Search
Search photos from users using 23
Help / Discussion
Get help or share your ideas to make 23 better
23 Blog / 23 on Twitter
Messages and observations from Team 23
Terms of use
What can 23 be used for and what isn't allowed
More services from 23
We also help people use photo sharing in their professional lives
RSS Feed
Subscribe to these photos in an RSS reader
  • Basque (ES)
  • Bulgarian (BG)
  • Chinese (CN)
  • Chinese (TW)
  • Danish (DK)
  • Dutch (NL)
  • English (US)
  • French (FR)
  • Galician (ES)
  • German (DE)
  • Italian (IT)
  • Norwegian (NO)
  • Polish (PL)
  • Portuguese (PT)
  • Russian (RU)
  • Spanish (ES)
  • Swedish (SE)

Popular photos right now