Code Monkey home page Code Monkey logo

kirby-blurhash's Introduction

available for work. โ†’ [email protected]

Side Projects

Kirby

  • kirby-seo: ๐Ÿ”Ž SEO for Kirby CMS โ€“ done right
  • kirby-icon-field: ๐Ÿท๏ธ A simple Icon field plugin for Kirby CMS
  • kirby-blurhash: ๐ŸŽจ Image placeholders with BlurHash
  • kirby-thumbhash: ๐Ÿš€ Image placeholders with ThumbHash
  • kirby-tailwind-merge: โ™จ๏ธ Intelligently merge Tailwind classes without style conflicts in your Kirby templates
  • kirby-magick-extended: ๐Ÿ–ผ๏ธ Add proper GIF & APNG support with ImageMagick
  • kirby-paparazzi: ๐Ÿ“ธ Programmatic image generation toolkit with Puppeteer
  • kirby-baukasten: ๐ŸฆŽ Batteries-included Kirby 4 Boilerplate with Tailwind CSS, Stimulus, TypeScript, Vite & other best practices

Most of my side projects are provided free of charge & published under the permissive MIT License. If you use them in a commercial project, please consider to sponsor me on GitHub to support further development and continued maintenance of my plugins.

kirby-blurhash's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tasinttttttt

kirby-blurhash's Issues

libpng warning: iCCP: known incorrect sRGB profile

With some png files, there's the uncached error which causes a 500 error:

Whoops \ Exception \ ErrorException (E_WARNING) imagecreatefromstring(): gd-png: libpng warning: iCCP: known incorrect sRGB profile

located in classes/BlurHash.php:55

    // Create a GD image from the file.
55:    $image = imagecreatefromstring($file->thumb($options)->read());
 ...

Maybe has something to do with this.

The quickest fix would be to switch Kirby's config thumb.driver from gd to ImageMagick im.

How to solve memory issues?

Hi there!

If I delete my thumbhash cache folder, my site is overwhelmed on a few pages by the many calls to $image->thumbhashUri(), resulting in a memory allocation error. What's the recommended solution to solve this? Does kirby-thumbhash provide some kind of cli command to re-generate thumbhashes for all images on a site?

Add format config option

Add format option as plugin requires gd which can be setup without JPEG or WEBP support in some cases so transforms won't work

CleanShot 2023-01-08 at 15 35 09@2x

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.