tschoffelen/php-pkpass

How i can add thumanil@2x.png option

skjangid opened this issue · 3 comments

I want to show user prpfile image in the wallet, the option is available when i pass thumnail@2x,png in node.js but how i can use in php ?

$pass->addFile function is allowing absolute image path ? like the web image url ?

It won't allow web image URLs, you'd have to first download them to the filesystem.

The function accepts either relative or absolute local paths:

$pass->addFile('icon.png'); // icon.png in same folder as your script

// or:
$pass->addFile('/var/local/web/.../icon.png');