No commit activity in last 3 years
No release in over 3 years
Open source list of label sizes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Label Definitions

An open source list of label dimensions. The data are in labels.yml.

Surprisingly Avery doesn't publish a structured list of their labels. Even more surprisingly, I can't find a good list on the internet. So here's a start.

Avery has so many labels that I add them here on an as-needed basis. Feel free to open a pull request for additional labels (supplying the dimensions).

Installation

Add this line to your application's Gemfile:

gem 'label_definitions'

And then execute:

$ bundle

Or install it yourself as:

$ gem install label_definitions

Usage

# Get all the labels
LabelDefinitions.all
# => [ #<Label>, ... ]

# Get a specific label
LabelDefinitions.find 'Avery 5160'
# => #<Label @name='Avery 5160', ...>

# Add a custom label (not persisted)
custom = Label.new name: 'Custom', ...
LabelDefinitions.add custom
LabelDefinitions.find 'Custom'
# => #<Label @name='Custom', ...>

Intellectual Property

Copyright 2013 Andrew Stewart, AirBlade Software Ltd. Released under the MIT licence.