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

How do I use ~text with this library? #13

Closed
adamtester opened this issue Mar 2, 2016 · 1 comment
Closed

How do I use ~text with this library? #13

adamtester opened this issue Mar 2, 2016 · 1 comment

Comments

@adamtester
Copy link

Is it possible to add multiline text using this?

@paulstraw
Copy link
Contributor

Hey @adamtester, that shouldn't be a problem at all. Since the text endpoint just lives at the /~text URL of your source, you should just be able to do the following:

$params = array("txt64" => "hello, world! 👌");
$textURL = $builder->createURL("~text", $params);

At that point, you can just use $textURL anywhere else, such as the mark64 param of another imgix URL.

Hopefully that answers your question. I'm going to close this issue, but please feel free to reopen it if you're still having any trouble with this!

(Please note, the above examples are using our new Base64-encoded param variants, which are documented here: https://docs.imgix.com/apis/url)

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

No branches or pull requests

2 participants