Giter Club home page Giter Club logo

sketch-preview's People

Contributors

marcisme avatar modkaffes avatar nefaurk avatar pravdomil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sketch-preview's Issues

Switches to Skala Preview on every ⌘P

Whenever I use this (wonderful) plugin, the active app on my mac switches to Skala Preview. This makes it hard to quickly look at design iterations while working. If there's any way to send an artboard to Skala without taking me out of Sketch, that'd be great.

The plugin no longer recognizes Skala Preview

Have Skala Preview installed but the plugin can no longer recognize it. Error message: "Failed to open preview file; Make sure 'Skala Preview' is installed.

OS: High Sierra 10.13.2
Sketch: 48.2
Skala Preview: 2.0 (207)

Appreciate the help!

Sketch Artboard no longer working

I can drag images to Skala Preview; however, I can't use Command + P to preview artboards from sketch anymore. It gets stuck on a black 1x1 square (see screenshot).

I'm using the latest version, 207, and macOS High Sierra 10.13.2.

Only exports artboard to Skala.

I was testing the plugin today, and found that even when I have slices named Preview the plugin still exports the entire artboard to Skala Preview.

Live update fails with older version of Sketch (3.3.3)

This probably isn't a surprise but thought I would post: I have to run an older version of Sketch for work (long story) so just thought I would test the live feature. It doesn't update automatically but the rest of the plugin still works great.

Support 3.3+?

First off this is an amazing tool. Thank you for creating it. I was wondering if you have any plans to support Sketch 3.3? Thanks!

Cmd+P with an artboard selected won't work.

This seems like an awesome plugin, but for me Cmd+P does not send the selected artboard to Skala, but always the first one (which is not selected). It works great with a slice or artboard named "Preview", but not without. Any hints on that?

Thanks a lot!

Keyboard shortcut no longer working

Thanks for a great plugin!

In Sketch 49 they added Prototyping where "Preview Prototype..." has stolen the keyboard shortcut for Sketch Preview. I use this like every other minute 😆

Issue on Sketch 3.4.2

Is it working for sketch 3.4.2?

I'm trying to preview a artboard but it is failing.

Doesn't work for Android

I haven't been able to get this to work fro Android for months. Don't really know why it took me this long to file an issue. I've asked dozens of colleagues (fellow designers at Facebook) if Preview works for them on Android, and the response has unilaterally been no. Any idea when we can expect an update? Or if our engineers can help?

Black screen on large height

Hi, I have a problem with large height artboard, when I preview artboard it shows me black screen, if I reduce artboard height to smaller height it's working fine.

I get this black screen on Skala View (android), on Skala Preview I see the image which should previewed.

Sketch hijacking preview shortcut

It seems Sketch natively hijacks the provided Preview shortcut (cmd+P). Is there a known workaround for this without having to go through the menu each time to refresh preview?

Request/Interest Alternative to Skala

Hey, first of all thanks for your awesome plugin.

I got it working, but Skala Preview was not really reliable or slow and I think it's odd to install a separate App just for a preview.

I was wondering what you think about getting rid of it? I think a webpage that just displays the image in fullscreen is more than enough for most use cases. It would also allow to expand the functionality much further if need.

After a few hours I got a quick spike working:

  • starting an http-server from within the sketch plugin that basically serves the cache-directory
  • writing the latest preview filename to a "latest" file in the cache directory
  • creating an index.html which includes very basic functionality like a fullscreen button (using https://github.com/sindresorhus/screenfull.js)
  • a script embedded in index.html which fetches the content of the "latest" file periodically and renders the content in an image tag

you can see the changes I made for the spike here: https://github.com/marcisme/sketch-preview/compare/master...p0wl:http-server?expand=1

notes: I had to switch back to png because most browsers don't render .tiff. Also: right now index.html has to be copied to the cache directory by hand, since I had no idea how/where to do it in the plugin.

The proposed solution could be an alternative or a replacement to Skala.

I'm still not quite sure if this is a good approach (especially "embedding" the webserver within the plugin), so I thought I'd ask if you would be willing to accept contributions in that direction.

Let me hear what you think!

Spike (bad quality because of gif):
sketch_mirror

@2x Preview

I work in 1x in my artboards and set them to export 2x. How do I get this plugin to allow 2x exporting to Skala Preview?

Not working in Sketch 3

I've made these steps:

  • Launch Skala Preview on my MacBook
  • Launch Skala View on my iPhone 5
  • Copied Preview.jstalk to ~/Library/Application support/com.bohemiancoding.sketch3/plugins
  • Renamed my 640✕1136 artboard with app design to “Preview”
  • Pressed ⌘P – doesn't work
  • Clicked PluginsPreview through menu – doesn't work

No need to create a install script

Hey Marc,

Sorry to kill your code, but there is no reason to write an install script. If you save the plugin in the .sketchplugin extension like mine Sketch will automatically move the plugin to it's proper spot when double-clicked.

Jake

currentArtboard never returns anything

I forked this repo from another fork and attempted to set the filename to the name of the current artboard. After digging in for quite awhile I discovered that this line never seems to return anything:

[[doc currentPage] currentArtboard]

I actually got it to work one time, but then couldn't repro what I did. Reasonably sure it's a bug in the API. Have you seen this?

How do I change it?

Error message

failed to open preview file ;make sure skala preview is installed

Sketch Beta Support

I know Sketch v3.2 isn't officially supported, but it was working fine until the update today. More of an FYI, but it would be nice since you can't open a file in an older version of Sketch once it's been converted to be compatible with v3.2.

Conflicting Keyboard Commands

Hi, is there a way to change the custom keyboard command to run this plugin?
The very popular Invision/Craft plugin also uses "Cmd + P".

Feature request: scaling to px width

In addition to scaling to various iPhone sizes plus scaling to 0.5x – 4x, I would love to see the ability to scale to user-selectable px width. So something very similar to what you're able to do when exporting artboards manually from Sketch, you can either export e.g. at 2x or at 512px wide by entering "512w" in size-field.

This would help immensely in previewing things on Android devices with varying screen resolutions.

Bitmap Exporting and Importing compatibility with macOS High Sierra

Since Sketch 49 (up until 49.2), there's been an odd colour conversion issue. This is what would happen: https://d.pr/i/Mwigd

Last night, Sketch updated to 49.3 and fixed this bug.

Unfortunately, the issue still occurs with Skala Preview. See example: https://d.pr/i/icetna

When I drag images directly onto Skala it's correct, but when the Sketch Preview pushes the artboard to Skala Preview, the colours are still incorrect.

Have you run into this? …Hopefully this makes sense…!

Feature request: Ability to preview at different scales

I'm working at MDPI (1x) so when I use this plugin to preview on an XXHDPI (3x) screen, it's too small.

Sketch has the ability to export from MDPI to XXHDPI (3x), so what I do now is export an image at 3x. A folder action picks up the exported image and loads it in Skala Preview. This works pretty well but would love the ability to hit CMD+P in Sketch and have the plugin export at 3x before sending to Skala Preview.

Broken in Sketch Version 3.3 (11624)?

Hi,

This no longer seems to be working in the latest beta of Sketch 3.3. I'm unable to launch Preview Setup, and previewing no longer seems to send anything to Skala.

Tried re-installing and still no luck. Are you experiencing the same issue?

Thanks!

Pierre

Scala view don't show available computer

Hello.
I am using Sketch 49.3, scala view just installed as sketch preview plugin and nothing is working. On android it always shows no computer available. Also sketch show failed to open error when select any artboard.
How to fix this?

Support Sketch 45 plugin update system

Hi there!

This is a quick note to remind you that Sketch 45 will include a plugin update system.

It would be awesome if you could add support to it (it's really easy!) before Sketch 45 comes out. Ideally, you should release an update for your plugin while we're still in Sketch 44, so your users will have a nice & easy experience when 45 is released.

For more details, please check http://sketchplugins.com/d/229-updating-plugins and http://developer.sketchapp.com/introduction/updating-plugins/

Thanks in advance!

command+P can't send artboard to android phone

Press command+P can't send artboard to android phone , devices is connected . but command+c copy artboard is working .
sketch v3.5.2
skala preview v 0.8.0
skala for mac v2.0(207)
skala for android v2.0.3

Crashing with Auto Preview

Kévin on Twitter reported:

Awesome plugin but since live updates Sketch crash a lot… :(

Can you answer any of the questions below? This will help me reproduce the problem.

  • What version of Sketch? (Sketch -> About Sketch)
  • What version of OS X? ( -> About this Mac)
  • Does the problem only happen while Auto Preview is enabled?
  • How big is the Sketch document?
  • How many Artboards?
  • Roughly how many layers?
  • Which version of Sketch was used to create the document?
  • Does the plugin cause a crash when doing anything specific? Selecting different layers? Changing the document in some way?
  • Is there any output in Console.app when the crash occurs? (Applications -> Utilities -> Console)
  • Is there a crash report with a stack trace when Sketch is restarted?
  • Can you reproduce the crash, or does it seem to happen at random?
  • Does it only happen after Sketch has been open for a while, or does it sometimes happen right away?
  • Does the problem happen with new documents or only this specific one?
  • Anything else you may have noticed when the crash occurs?

4x size for the preview

Now I started using Nexus 6 as my design device and the max preview output size cannot send the full screen artboard to the phone. The artboard is sized at 360x640, so after 4X it is 1440x2560, which is the resolution of Nexus 6.

Not previewing the correct artboard.

I have 2 sketch files open, and I'm using the plugin. It was working just fine, but noticed today that it's loading an artboard from my other file for some reason, and not from the artboard I'm currently on?

3.5 update issue

Hi,

I used to use your amazing Skala application on my phone and sketch. But it seems that Sketch 3.5 (I guess) makes skala view not recognize my macbook pro : "no computer available". It worked before the update even if I had to kill and relaunch the app to recognize my computer again.

The two devices are on the same wifi network. I work in a pretty large company and I have asked to the service in charge of network if they have changed some parameters on the network. They answer me no.

I have tried to reset the authorizations, but nothing changed.

Technical informations : I have a 5.1 Android phone with Skala View 2.0.3 and Sketch 3.5

Additional information : I am in the same position as : #33

Any Idea ? Thank you in advance.

Bertrand

Does not scale to explicit size

Changing the "Scale to explicit size" setting plugin always exports as the same size.

I'm using Skala Preview 2 (205), and Skala View 1.8 on an iPhone 5s.

Not working

Sketch 3.4.4 & Scala View 2.0

Neither is detecting the other. thing helpful in the console. Is anyone else able to reproduce this?

android

skala is not working in android

CoreServicesUIAgent: Error -60005 creating authorization

Mac OSX Yosemite 10.10.4
Skala Preview 2.0
Skala View Android 1.2.2
Sketch 3.3.3 (12072)
Sketch Preview v0.8.0

Connects to Android app successfully, but as soon as this happens the Android app crashes. Console gives me an error:

CoreServicesUIAgent: Error -60005 creating authorization

Can't get it to display on Android device without the app crashing at all. Any idea? Thanks for working on this!

Scaling modes by width only

It seems like it would make sense to set device scaling to scale the artboard's width to match device size (e.g. 375pt to 1242pt for 6+) and scale the height relative to actual height of the artboard to accommodate artboards that exceed the device screen height.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.