Hey gang,
I've been working on a new version of SmoothieRx and the big thing for this new version is to up the quality of icons for Retina displays. One of the core features is to share a screenshot, but when I exportSnapshot it turns out super pixelated. I have tried multiple iterations on multiple platforms (Livecode 6.52 & 6.6), but it's still pixelated.
I think this is a feature request, but I just wanted to run it by you guys to see if there was anything I was missing.
Cheers,
Todd
exportSnapshot quality?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 47
- Joined: Thu Apr 27, 2006 11:19 pm
Re: exportSnapshot quality?
Hi Todd,
I have been using export snapshot in my last iPad app (NON retina) and do not see any problems?!
Could you post your "snapshot" script?
Best
Klaus
I have been using export snapshot in my last iPad app (NON retina) and do not see any problems?!
Could you post your "snapshot" script?
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 47
- Joined: Thu Apr 27, 2006 11:19 pm
Re: exportSnapshot quality?
Hi Klaus,
I double-checked this morning to see if mergPopActivity was compressing the image. It doesn't look like that's the case. The file on the iPhone's disk turns out to be 39 kbs. That's super small! It should be around 256 kbs at least.
Code: Select all
on mouseDown
put specialFolderPath("Documents") into tFolder
export snapshot from this card to file (tFolder&"/recipegraph.png") as PNG
if char 1 of the systemVersion >= 6 then
mergPopActivity "#SmoothieRx",(tFolder&"/recipegraph.png"),"http://www.appstore.com/smoothierx"
else
if mergTweetCanSend() then
mergTweet "#SmoothieRx","http://www.appstore.com/smoothierx",(tFolder&"/recipegraph.png")
end if
end if
end mouseDown
-
- VIP Livecode Opensource Backer
- Posts: 47
- Joined: Thu Apr 27, 2006 11:19 pm
Re: exportSnapshot quality?
Just wanted to post a follow-up. My problem was with the new syntax: "at size" and then multiplying the width and height by the pixelScale.
There really should be better documentation for this with an example of where to put "at size."
Hope this helps those who are similarly challenged.
Cheers,
Todd
There really should be better documentation for this with an example of where to put "at size."
Code: Select all
export snapshot from this card at size (tWidth*tPixelScale, tHeight*tPixelScale) to file (tFolder&"/test.png") as PNG
Cheers,
Todd