-
Notifications
You must be signed in to change notification settings - Fork 16
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
Blurhash string must be at least 6 characters #206
Comments
If you're using AWS Serverless for the image that you run |
I see....that would be why! Thanks for the quick response. Is it possible to add it to the AWS transformer? It seems supported on Sharp.js per this article https://css-tricks.com/inline-image-previews-with-sharp-blurhash-and-lambda-functions/ But I have no clue what's involved in implementing it, would just be nice to have. |
No, the kind of flexibility that the article talks about is not available in the AWS transformer (AFAIK). But, unless you're using AWS Serverless because you can't use local transforms, there's always the option of using the
Hope that helps! |
That does help, thank you! I hadn't thought of the workaround to use local transforms, but that should work. |
I'm submitting a...
Steps to reproduce
InvalidArgumentException: Blurhash string must be at least 6 characters in /var/www/html/vendor/kornrunner/blurhash/src/Blurhash.php:88
Stack trace:
#0 /var/www/html/vendor/spacecatninja/imager-x/src/services/PlaceholderService.php(174): kornrunner\Blurhash\Blurhash::decode('', 25, 10)
#1 [internal function]: spacecatninja\imagerx\services\PlaceholderService::spacecatninja\imagerx\services{closure}(Object(craft\cache\FileCache))
#2 /var/www/html/vendor/yiisoft/yii2/caching/Cache.php(607): call_user_func(Object(Closure), Object(craft\cache\FileCache))
#3 /var/www/html/vendor/spacecatninja/imager-x/src/services/PlaceholderService.php(193): yii\caching\Cache->getOrSet('imager-x-blurha...', Object(Closure))
#4 /var/www/html/vendor/spacecatninja/imager-x/src/services/PlaceholderService.php(61): spacecatninja\imagerx\services\PlaceholderService->placeholderBlurhash(Array)
#5 /var/www/html/vendor/spacecatninja/imager-x/src/variables/ImagerVariable.php(62): spacecatninja\imagerx\services\PlaceholderService->placeholder(Array)
#6 /var/www/html/vendor/twig/twig/src/Extension/CoreExtension.php(1607): spacecatninja\imagerx\variables\ImagerVariable->placeholder(Array)
#7 /var/www/html/vendor/craftcms/cms/src/helpers/Template.php(146): twig_get_attribute(Object(craft\web\twig\Environment), Object(Twig\Source), Object(spacecatninja\imagerx\variables\ImagerVariable), 'placeholder', Array, 'method', false, false)
#8 /var/www/html/storage/runtime/compiled_templates/9e/9ee707d0b77dbbea829b415500d369fdeb6e5abe1e030301f1dbacec78c6a91f.php(69): craft\helpers\Template::attribute(Object(craft\web\twig\Environment), Object(Twig\Source), Object(spacecatninja\imagerx\variables\ImagerVariable), 'placeholder', Array, 'method')
#9 /var/www/html/vendor/twig/twig/src/Template.php(394): __TwigTemplate_90144b85c1ee61594ca5a2d3927755d8371983e40b084f8223b5aaf523c1a98a->doDisplay(Array, Array)
#10 /var/www/html/vendor/twig/twig/src/Template.php(367): Twig\Template->displayWithErrorHandling(Array, Array)
#11 /var/www/html/vendor/twig/twig/src/Template.php(379): Twig\Template->display(Array)
#12 /var/www/html/vendor/twig/twig/src/TemplateWrapper.php(40): Twig\Template->render(Array, Array)
#13 /var/www/html/vendor/twig/twig/src/Environment.php(277): Twig\TemplateWrapper->render(Array)
#14 /var/www/html/vendor/craftcms/cms/src/web/View.php(456): Twig\Environment->render('sections', Array)
#15 /var/www/html/vendor/craftcms/cms/src/web/View.php(509): craft\web\View->renderTemplate('sections', Array)
#16 /var/www/html/vendor/craftcms/cms/src/web/TemplateResponseFormatter.php(56): craft\web\View->renderPageTemplate('sections', Array, 'site')
#17 /var/www/html/vendor/yiisoft/yii2/web/Response.php(1098): craft\web\TemplateResponseFormatter->format(Object(craft\web\Response))
#18 /var/www/html/vendor/craftcms/cms/src/web/Response.php(286): yii\web\Response->prepare()
#19 /var/www/html/vendor/yiisoft/yii2/web/Response.php(339): craft\web\Response->prepare()
#20 /var/www/html/vendor/yiisoft/yii2/base/Application.php(390): yii\web\Response->send()
#21 /var/www/html/web/index.php(17): yii\base\Application->run()
#22 {main}
The text was updated successfully, but these errors were encountered: