sketch-hq / unsplash-sketchplugin

Unsplash Data Provider plugin, for Sketch 52+
MIT License
71 stars 8 forks source link

Add ability to insert a specific photo #10

Closed patrickdaze closed 5 years ago

patrickdaze commented 5 years ago

Summary

Adds two ways of inserting a specific photo:

  1. Select the "Search Photo…" option then in the input field paste in an Unsplash photo URL. For example:
    • https://unsplash.com/photos/U0BxB-XMHgw
    • unsplash.com/photos/U0BxB-XMHgw
    • unsplash.com/photos/U0BxB-XMHgw?aParamIgnoredByThePlugin=1
    • unsplash.com/photos/U0BxB-XMHgw#aHashIgnoredByThePlugin
    • unsplash.com/photos/U0BxB-XMHgw/someOtherThingIgnoredByThePlugin
  2. Select the "Search Photo…" option then in the input field type id:<photoId>. For example:
    • id:U0BxB-XMHgw

Reason

  1. It allows people to browse unsplash.com for photos and then easily insert them into Sketch.
  2. Since the photo is added with the plugin, the photo's origin is also tracked as metadata for future references.