All Projects → mindkomm → Timmy

mindkomm / Timmy

Licence: mit
Advanced image handling for Timber.

Projects that are alternatives of or similar to Timmy

Flynt
Component based WordPress starter theme, powered by ACF Pro and Timber, optimized for a11y and fast page load results.
Stars: ✭ 363 (+148.63%)
Mutual labels:  wordpress, timber
Generator Chisel
Chisel is a development framework for creating easy to maintain and fast WordPress websites
Stars: ✭ 233 (+59.59%)
Mutual labels:  wordpress, timber
Lumberjack
Lumberjack is a powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code.
Stars: ✭ 261 (+78.77%)
Mutual labels:  wordpress, timber
Timber
Create WordPress themes with beautiful OOP code and the Twig Template Engine
Stars: ✭ 4,952 (+3291.78%)
Mutual labels:  wordpress, timber
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-82.19%)
Mutual labels:  wordpress, timber
Jackpine
WordPress starter theme with Timber, Tailwind, and Alpine.js.
Stars: ✭ 101 (-30.82%)
Mutual labels:  wordpress, timber
Sugar
Some bonus functionality for Timber
Stars: ✭ 44 (-69.86%)
Mutual labels:  wordpress, timber
Base Camp
Awesome WordPress starter theme for developers based on modern web technologies.
Stars: ✭ 135 (-7.53%)
Mutual labels:  wordpress, timber
Setup Ghost Blog
Script to install your own Ghost blog, with Nginx and ModSecurity/Naxsi web application firewall. Supports multiple blogs.
Stars: ✭ 140 (-4.11%)
Mutual labels:  wordpress
Bootstrap Blocks Wordpress Plugin
Bootstrap Gutenberg Blocks for WordPress
Stars: ✭ 143 (-2.05%)
Mutual labels:  wordpress
Health Check
Health Check is a WordPress plugin that will perform a number of checks on your WordPress install to detect common configuration errors and known issues.
Stars: ✭ 139 (-4.79%)
Mutual labels:  wordpress
Wp Api Menus
🔡 Menu routes for WordPress JSON REST API.
Stars: ✭ 140 (-4.11%)
Mutual labels:  wordpress
Live Composer Page Builder
Free page builder plugin for WordPress http://livecomposerplugin.com
Stars: ✭ 143 (-2.05%)
Mutual labels:  wordpress
Google Docs Add On
Publish to WordPress from Google Docs
Stars: ✭ 140 (-4.11%)
Mutual labels:  wordpress
Wp mail
Documentation for all the situations where WordPress core sends an email, how and when they happen, and how to filter or disable each one.
Stars: ✭ 144 (-1.37%)
Mutual labels:  wordpress
Core
All of the required core code
Stars: ✭ 139 (-4.79%)
Mutual labels:  wordpress
Image Optimize Command
Easily optimize images using WP CLI
Stars: ✭ 138 (-5.48%)
Mutual labels:  wordpress
Sage
WordPress starter theme with a modern development workflow
Stars: ✭ 11,531 (+7797.95%)
Mutual labels:  wordpress
Wordmove
Multi-stage command line deploy/mirroring and task runner for Wordpress
Stars: ✭ 1,791 (+1126.71%)
Mutual labels:  wordpress
Wonolog
Monolog-based logging package for WordPress.
Stars: ✭ 142 (-2.74%)
Mutual labels:  wordpress

Timmy

Timmy is an opt-in library/plugin to make it more convenient to work with responsive images. It was designed to be used with Timber, but should work with all your WordPress projects.

In your Twig template, you can do this:

<img{{ post.thumbnail|get_timber_image_responsive('custom-6') }}>

To get this:

<img srcset="https://www.example.org/wp-content/uploads/2016/02/header_example-480x206-c-default.jpg 480w,
    https://www.example.org/wp-content/uploads/2016/02/header_example-768x329-c-default.jpg 768w,
    https://www.example.org/wp-content/uploads/2016/02/header_example-1400x600-c-default.jpg 1400w,
    https://www.example.org/wp-content/uploads/2016/02/header_example-2800x1200-c-default.jpg 2800w"
src="data:image/gif;base64,R0lGODlhAQABAAAAADs="
sizes="100vw"
alt="Your alt text"
title="Your image title">

Documentation

Features

Timber already comes with a set of really nice features for handling images. Especially the arbitrary resizing of images is very convenient. Whenever a page is accessed and the image size can’t be found, it will be created on the fly. You can use as many different image sizes as you like, without always having to use plugins like Regenerate Thumbnails when you make a change to the default WordPress image sizes.

Timmy uses Timber’s ImageHelper class to enhance this functionality even more.

Mimicks default WordPress image functionalities

  • You can have as many defined image sizes as you want. It’s easier to work with named image sizes like thumbnail, medium, portrait etc. Timmy lets you define each image size with a lot of handy configuration options.

  • Users can select different image sizes in WYSYWIG editor. Normally, a user can only select the default WordPress sizes Thumbnail, Medium, Large and Full. With images defined through Timmy, a user can select all image sizes that you define, without the default sizes.

  • Makes images inserted into a post’s content via WordPress Editor responsive.

  • Integration for popular plugins like Advanced Custom Fields, Admin Colums and Yoast SEO. Because Timmy tells WordPress that there are image sizes present, other plugins will allow you to select images defined through Timmy, like the preview images for image fields defined with ACF or a preview image used in Admin Columns.

  • You can still use Regenerate Thumbnails. Using Regenerate Thumbnails with Timmy will clean your uploads folder from image sizes you don’t need anymore. If you have no image sizes defined with Timmy, Timmy will delete all image sizes generated with Timmy. But no worries, remember that Timber automatically creates an image size if it doesn’t already exist.

  • You can still use Timber’s resize functions. Timber has some really neat image manipulation functions. You can still use these or you can also use a mix of the two.

Helps you with image HTML output

  • Responsive images. For each image size, you can define additional sizes that will be used for the responsive image srcset.

  • Accessibility. Timmy automatically pulls image descriptions and alternative texts for alt and title tags.

Reasonable image generation

  • Image sizes are generated when they are uploaded. When you use Timber images you don’t have to care about image sizes being present in the uploads folder. If your frontend is accessed, Timber creates image sizes when they don’t already exist. You’d always have to visit the frontend to make sure the first visitor of a page doesn’t have really long loading times. Because Timmy knows which sizes you want to use – you defined them – it will generate them for you. There are cases where this is useful, e.g. when some posts are created automatically and you also pull in images.

  • Restrict to post types to prevent bloat. If you want to use an image size just for one post type, you can define that. This will prevent bloating up your uploads folder with image sizes that are never used on the site.

Limitations

  • We don’t know if Timmy works with images hosted on Content Delivery Networks (CDN). We haven’t looked into that yet and we don’t know if we ever will. Pull requests welcome ;).
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].