Strange behavior Mergpop (2.0.7) and Retina screens?

This is the place to get technical support and discuss all things to do with MergEXT

Moderators: FourthWorld, heatherlaine, Klaus, robinmiller, monte

Post Reply
williamdesmet
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 67
Joined: Tue Jun 26, 2012 7:07 pm

Strange behavior Mergpop (2.0.7) and Retina screens?

Post by williamdesmet » Sat Sep 27, 2014 2:46 pm

Yesterday I got an e-mail about a problem with one of my apps.
I am trying to debug the problem now and maybe anyone can help me.

In my app I use MergPop (MergExt) for saving an image.
When putting my app through Xcode on my iPad the image is saved nicely using MergPop.
But when I download the app from the Appstore (I never did before until today) only a part of the image is saved using MergPop.
This is on a iPad 3 with retina screen with iOS 7. On a non Retina screen (iPad mini) with iOS 8 the behavior is normal and the entire image is saved.

My app was uploaded to the App store in februari 2014 and today I noticed that MergPop was updated on 3/24/14.
Does anyone recognize my problem. Is it due to an older version of Mergpop (2.0.7?) and retina screens?
I also contacted Monty but he didn't respond yet.

Greetings,

William

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Strange behavior Mergpop (2.0.7) and Retina screens?

Post by jacque » Sat Sep 27, 2014 6:02 pm

Mergpop just returns info about the user choice but doesn't do anything about creating the actual image. That's done in your script. It sounds like the handler isn't taking the screen resolution into account, but that shouldn't be different based only on where you acquired the app.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

williamdesmet
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 67
Joined: Tue Jun 26, 2012 7:07 pm

Re: Strange behavior Mergpop (2.0.7) and Retina screens?

Post by williamdesmet » Sat Sep 27, 2014 6:43 pm

Hi Jacque,

Thanks for your answer.
It is exactly like I said and that's what makes it so strange.
You're right about the screen resolution. I just do this:

Code: Select all

export snapshot from rectangle "20,72,1000,742"  to tFoto as PNG 
put tFoto into img "foto"
put tFoto into URL ("file:"&specialFolderPath("documents")&"/woordparachute.png") 
put specialFolderPath("documents")&"/woordparachute.png" into tImage
--
mergPopActivity "",tImage,"",""
But why does it work when I put it through Xcode on my iPad and not through the AppStore?
The only thing I can think off now is a difference in Xcode and LC versions (between februari 2014 and today).

Anyone else seen this behavior?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Strange behavior Mergpop (2.0.7) and Retina screens?

Post by jacque » Sat Sep 27, 2014 8:54 pm

It isn't quite clear in your first message whether you are downloading from the App Store to both devices. If you put the app on the retina device, test it, delete it, and then download it from the App Store to the same device, does the problem occur? If so, that really doesn't make any sense.

Your script designates a specific rectangle, which would clip on retina if you are using exact pixels. Are you setting iPhoneDeviceResolution or usePixelScaling anywhere in your script?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Strange behavior Mergpop (2.0.7) and Retina screens?

Post by monte » Mon Sep 29, 2014 1:03 am

Hi

Yes if you are still on LC 6.5 and setting iPhoneUseDeviceResolution to true then you would need to scale the rectangle by 2. As mergPopActivity isn't actually saving the image I don't believe it's involved in the problem.

Cheers

Monte
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

williamdesmet
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 67
Joined: Tue Jun 26, 2012 7:07 pm

Re: Strange behavior Mergpop (2.0.7) and Retina screens?

Post by williamdesmet » Thu Oct 02, 2014 8:46 am

Hi there,

Thanks voor your answers.
@Jacque: before I posted my question here I tested what you describe. Only on the retina device the problem occurs.
I am not using iPhoneDeviceresolution or usePixelScaling.
@Monty: I use LC 6.6.3 (iPhoneDeviceresolution is deprecated) . Should I use PixelScale now? Set the pixelScale to ‘1.0’ or set the pixelScale to the systemPixelScale?

Greetings,

William

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: Strange behavior Mergpop (2.0.7) and Retina screens?

Post by monte » Fri Oct 03, 2014 1:47 am

I thought I read you had resolved the issue now from the posts I've seen on the use list. On 6.6 you don't need to worry about device resolution.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

williamdesmet
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 67
Joined: Tue Jun 26, 2012 7:07 pm

Re: Strange behavior Mergpop (2.0.7) and Retina screens?

Post by williamdesmet » Tue Oct 28, 2014 10:35 pm

Hi there,
I almost gave up but but after testing with different lines of code I added 'of this cd" to the code and all is fine now.
So I changed:

Code: Select all

export snapshot from rectangle "20,72,1000,742"  to tFoto as PNG
into

Code: Select all

export snapshot from rectangle "20,72,1000,742"  of this cd to tFoto as PNG


LC 6.6.5, iOS 8.1 (and iOS 7.1) and mergPop 2.0.10.

greetings,

William

Post Reply

Return to “MergEXT”