Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add background image. #68

Open
montelco opened this issue Feb 1, 2017 · 2 comments
Open

Can't add background image. #68

montelco opened this issue Feb 1, 2017 · 2 comments

Comments

@montelco
Copy link

montelco commented Feb 1, 2017

The icon, using a PNG, works. But using a PNG background makes the pass fail to validate.

@montelco montelco changed the title Can't add change message to pass. Can't add background image. Feb 1, 2017
@dennisp93
Copy link

Same problem here, i add the image the same way as the other images. Logo does work correctly, strip too.

$background = new Image($this->backgroundFile, 'background'); $pass->addImage($background);

I think the pass is packed correctly, every file is in the .pkpass package, another idea why background image is not working?

Thanks!

@dennisp93
Copy link

Found a "solution".

https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/PassKit_PG/Creating.html

As you can see in Table 4-1, only one special type of Event Ticket can have a background image. In this table is listed which layout can have which images. Maybe the library should add a check in the validator for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants