Comments (6)
I'm new here. I don't see a way to "vote up" honging's comment.
I agree completely. Came here to open the same issue.
from api-spec.
I'm not quite sure I fully understand, so could you help me understand how this might be different than an attachment annotation that would allow you to include metadata?
from api-spec.
Referencing https://github.com/appdotnet/api-spec/blob/master/objects.md makes note of an "image" type (or is an image simply a subset of an attachment type? this doesn't seem to be clarified in the spec).
Instead of having an image:
{
"height": 512,
"width": 512,
"url": "https://example.com/image.jpg"
}
Once could generalize it further by not assuming the attachment is an image, but a generalized media type:
{
"mimetype": "image/x-png",
"height": 512,
"width": 512,
"url": "https://example.com/image.jpg"
}
Which would let you embed videos as well:
{
"height": 512,
"width": 512,
"duration": 60,
"mimetype": "video/mp4",
"url": "https://example.com/video.mp4"
}
or who knows?
{
"mimetype": "image/svg+xml",
"url": "https://example.com/maybe-svg-will-take-off-one-day.svg"
}
Expanding on this, an image might look like:
{
"height": 512,
"width": 512,
"mimetype": "image/x-jpg",
"url": "https://example.com/image.jpg".
"annotations": {
"exif:ImageWidth": 512
}
}
from api-spec.
Image is specifically for user icon and cover image. It's not the full and proper image annotation that we'll be adding (working on a draft of that as we speak.), more of a standard user schema for being able to have clients render posts from a user.
from api-spec.
It would be nice to have resolution info and maybe size (kb) info in the image objects as well. This might complicate media vs simple image but I think it will be necessary given screen and connectivity diversity.
from api-spec.
We're using an oembed annotation for this purpose: https://github.com/appdotnet/object-metadata/blob/master/annotations/net.app.core.oembed.md
from api-spec.
Related Issues (20)
- Modifying annotations on an existing file doesn't seem to trigger a user stream event HOT 1
- Add "Mentions" to a User's Counts object
- Feature Request: Report Wrong Account Type Endpoint HOT 6
- The documentation for creating a file is incomplete
- Add a way to get messages in a channel containing a hashtag
- Add starring functionality to Messages HOT 1
- Abstract away stars – support generic "actions" with associated counters
- Post Search docs mentions seemingly non-functional has_location parameter HOT 6
- More Stream Faceting parameters HOT 1
- Dead link on the Messaging Basics page HOT 1
- Posts API : Reposts? HOT 3
- Expose which posts/messages a file has been attached to/embedded in HOT 1
- Feature request: Reply to multiple posts HOT 1
- Bug in Interactions endpoint pagination when using interaction_actions without "reply" HOT 5
- Allow searching for posts in the users stream.
- Annotations are not returned when creating a channel HOT 3
- include_inactive ignored by https://api.app.net/channels?ids=… HOT 2
- Wikipedia Markdown link throws a 'Bad request' error HOT 1
- User streaming - Add post hashtag search HOT 1
- Streaming fails to recognise "Upgrade: WebSocket" case insensitive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from api-spec.