Giter VIP home page Giter VIP logo

Comments (14)

kopiro avatar kopiro commented on July 30, 2024

up!

from panorama.

bohachevskyy avatar bohachevskyy commented on July 30, 2024

Hello @kopiro, do you have same problem as my?

from panorama.

kopiro avatar kopiro commented on July 30, 2024

yes :(
Do you have any idea?

It works fine, but I'm trying to wrap in a Titanium module and it crashes.

from panorama.

bohachevskyy avatar bohachevskyy commented on July 30, 2024

@kopiro Don't have any ideas. I will let you know when find solution. Good to know that I'm not alon

from panorama.

bohachevskyy avatar bohachevskyy commented on July 30, 2024

Hello @kopiro I have fixed the problem. This error occurred due to unsupportable image size (image must have proportion 2x1). I have created crop tool for resizing any image. You can find tool here:

https://gist.github.com/Rommanski/142f0b56ef553222a8fc221e2d4deee6

from panorama.

kopiro avatar kopiro commented on July 30, 2024

My image is 2x1 :(

from panorama.

kopiro avatar kopiro commented on July 30, 2024

Should I crop it anyway?

from panorama.

bohachevskyy avatar bohachevskyy commented on July 30, 2024

@robbykraft Maybe, there is reason to include same tool to the library? This solution will prevent problems with incorrect image size.

from panorama.

bohachevskyy avatar bohachevskyy commented on July 30, 2024

@kopiro Of corse not. Unfortunately, I don't have experience with Titanium. Do you try to include this native module to your app?

from panorama.

kopiro avatar kopiro commented on July 30, 2024

I'm working to wrap it in a Titanium module, but it doesn't works with this crash.
Trying to crop anyway, maybe it helps.

from panorama.

mayakraft avatar mayakraft commented on July 30, 2024

thanks for solving @Rommanski

yes, the instruction is in the readme, though after hearing from you, maybe it's not obvious enough.

i agree! including a scaling library would be helpful, though, i'm hung up on user design details -

  1. what happens when image is not 1:2? do we preserve aspect + crop, or scale axes independently?

I'm testing to see what I can do, a 1:2 but not a power of 2 (500x250) - I'm getting no errors generated, and "info" appears to load, (even though it doesn't show, as it shouldn't):

info = [GLKTextureLoader textureWithCGImage:image.CGImage options:options error:&error];

a work around would be load the image twice. First time as a UIImage, validate width and height properties, then if all checks out load the image again as a GLKTexture.. there must be a more elegant solution

from panorama.

kopiro avatar kopiro commented on July 30, 2024

Is there any chances that you can help me? I didn't solved yet :(
Thanks in advance

On Wednesday, November 9, 2016, Robby Kraft [email protected]
wrote:

thanks for solving @Rommanski https://github.com/Rommanski

yes, the instruction is in the readme, though after hearing from you,
maybe it's not obvious enough.

i agree! including a scaling library would be helpful, though, i'm hung up
on user design details -

  1. what happens when image is not 1:2? do we preserve aspect + crop, or
    scale axes independently?

I'm testing to see what I can do, a 1:2 but not a power of 2 (500x250) -
I'm getting no errors generated, and "info" appears to load, (even though
it doesn't show, as it shouldn't):

info = [GLKTextureLoader textureWithCGImage:image.CGImage options:options
error:&error];

a work around would be load the image twice. First time as a UIImage,
validate width and height properties, then if all checks out load the image
again as a GLKTexture.. there must be a more elegant solution


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#55 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzQFFQgigNZe0rQNzs4vYVcRbIhPH8zks5q8hP_gaJpZM4KmKU4
.

from panorama.

mayakraft avatar mayakraft commented on July 30, 2024

@kopiro are you using the included image? what are the dimensions of the image you are using?

from panorama.

kopiro avatar kopiro commented on July 30, 2024

I have answered on the other issue, thank you :)

On Wednesday, November 9, 2016, Robby Kraft [email protected]
wrote:

@kopiro https://github.com/kopiro are you using the included image?
what are the dimensions of the image you are using?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#55 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAzQFHQDxlj6untDIYUJEP9P9Bc9uprwks5q8hbngaJpZM4KmKU4
.

from panorama.

Related Issues (20)

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.