Title: Hammy
Author: Noel Tock
Published: <strong>26 ມິຖຸນາ 2012</strong>
Last modified: 16 ກຸມພາ 2014

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/hammy/assets/banner-772x250.png?rev=714875)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/hammy_e3e3e3.svg)

# Hammy

 ໂດຍ [Noel Tock](https://profiles.wordpress.org/noel_tock/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/hammy.1.5.1.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/hammy/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/hammy/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/hammy/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/hammy/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/hammy/)

## ຄຳອະທິບາຍ

#### Introduction

Hammy takes your regular content images (only within posts and pages, not custom
post types) and regenerates a number of smaller sized images. When a person visits
your website, it then automatically provides them with the most appropriate image(
or the smallest one possible). This makes for a better experience, especially on
mobile. This uses the new WP 3.5 image code.

#### Will it work on my Theme?

**Yes!** (the only exception being themes with no standard posts or pages)

#### How does it work?

When activated, the `<img>` tag is replaced by the `<figure>` tag, and the alternate
image sizes are provided in a way that only jQuery can access/load. If jQuery isn’t
available, it falls back to the regular image you had there in the first place.

It also takes on any classes or alternate titles from the original image. It does
not make any changes to your database (i.e. content or images that you already have
remain untouched).

#### What else do I need to know?

 * Supports Retina
 * Uses WordPress 3.5 Image Code (no external dependency)
 * You need to be willing to **spend a few minutes configuring and playing with 
   the breakpoints and choosing the correct parent container** to get it right.
 * Hammy filters the output every single time, but only needs to generate a resized
   image once.

#### Updates

Follow me for updates at [@noeltock](http://www.twitter.com/noeltock)

#### GitHub

If you have technical issues or other enhancements that you’d like to contribute,
please do so in the form of a pull request or issue here:

[https://wordpress.org/plugins/hammy/](https://wordpress.org/plugins/hammy/)

### Feedback & Bugs

Kindly post any issues, questions or suggestions on the [Hammy forums](https://wordpress.org/support/plugin/hammy).

## ພາບໜ້າຈໍ

 * [[
 * Options Screen

## ການຕິດຕັ້ງ

Video Walkthrough

Hammy already starts working upon activation, so any configuration is optional:

 1. Upload the folder `hammy` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. (Optional) Go to Settings -> Hammy and review the options. Add the id/class of 
    the container that holds your posts (i.e. #content). Then add breakpoints that 
    are relevant to that container ( **see the FAQ for an example** ).
 4. (Optional) Edit your theme’s CSS to add `figure.hammy-responsive`, in a way that
    it is identical to any `img` styling used for your content area.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

  How does the post/page container setting work?

The width of your browser is quite different than that of the post/page container(
i.e. #content). By being able to measure the width of the content container instead
of the browser window, you’ll ensure far better accuracy at all breakpoints.

  Breakpoints example?

If your website is 960px wide, but the content (#content) is only 600px, then `600`
is your largest breakpoint. If the next smaller size is iPhone landscape (where 
the sidebar is also positioned underneath the content) and you have a 10px margin
on either side, that breakpoint is `460` (480 minus 20), and so forth.

At the end, your breakpoints may look like `300,460,600`

  It doesn’t work with this gallery plugin or something else, what to do?

You have the ability to ignore certain classes (i.e. “.gallery-thumb”), but please
let me know of any edge-cases on the [Hammy forums](https://wordpress.org/support/plugin/hammy)

  How is Hammy constructed?

Hammy is possible through two awesome open source projects:

 * [jQuery Picture](http://jquerypicture.com/) by [Abban Dunne](http://abandon.ie/)(
   this script has been sligthly altered in order to be able to target a particular
   container).
 * [WPThumb](http://hmn.md/introducing-wp-thumb/) by [Human Made Limited](http://hmn.md)

They’re both worth checking out and getting a better understanding of (or using 
in your mega-awesome WordPress client projects).

  What’s with the squirrel?

Hammy, from the movie “Over the Hedge”, he’s quite fast, like these images. Be sure
to check out the movie for full appreciation.

## ການຣີວິວ

![](https://secure.gravatar.com/avatar/97bbe4fe76251bd8de789468d4e055a2a38da2615beb64caba53e5aff6c24084?
s=60&d=retro&r=g)

### 󠀁[Incredible](https://wordpress.org/support/topic/incredible-106/)󠁿

 [General Seed](https://profiles.wordpress.org/autocultivo/) 2 ກັນຍາ 2017

Incredible plugin, my page speed on Google was 74/100, after activate this plugin
the score is 92/100. Like a rocket Thanks very much. A update it,s posible or mantain
it. By now works fine

![](https://secure.gravatar.com/avatar/4a59cef23a1535ae4b11a86a439365a1b86d89f6154c679a441f7c8cb146e691?
s=60&d=retro&r=g)

### 󠀁[Not Compatible](https://wordpress.org/support/topic/not-compatible-25/)󠁿

 [CalvT](https://profiles.wordpress.org/calvt/) 3 ກັນຍາ 2016

Looks like WordPress has overtaken this plugin and left it in the dust – doesn’t
work on WP 4.5.1… No answers in the Support Forum, no update for over 2 years…

 [ ອ່ານການຣີວິວທັງໝົດ 16 ລາຍການ ](https://wordpress.org/support/plugin/hammy/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Hammy” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການພັດທະນາ
ປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Noel Tock ](https://profiles.wordpress.org/noel_tock/)

[ແປ “Hammy” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/hammy)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/hammy/), ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/hammy/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/hammy/) ຜ່ານ
[RSS](https://plugins.trac.wordpress.org/log/hammy/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.5.1

 * Fix invalid markup

#### 1.5.0

 * Moved back to using `figure` as opposed to `picture`for larger compatibility (
   especially IE). **Check your CSS to make sure figure** acts like an image.
 * Updated Lazy Load to 1.9.3
 * Gave Lazy Load placeholders dimensions so that the browser doesn’t reflow for
   each load

#### 1.4.1

 * Fixed Warnings
 * Typo
 * Tested PNG

#### 1.4

 * Allow images smaller then the smallest breakpoint to function
 * WPThumb Update
 * 3.8.1 Compatibility Testing

#### 1.3.2

 * WPThumb Update

#### 1.3.1

 * Readme & Banner changes

#### 1.3.0

 * Updated WPThumb
 * Added defaults that take into consideration `$content_width` if available.

#### 1.2.3

 * Add Walkthrough Video (under Installation)

#### 1.2.1

 * Fixed typo
 * Added walkthrough

#### 1.2

 * Fixed readme.txt typo’s
 * Added title attribute to images
 * Updated WPThumb to latest

#### 1.1

 * Add Lazy Loading with the help of @jacquesletesson
 * Clean up code to conform to WP standards more
 * Latest version of WPThumb

#### 1.0

 * Uses WordPress 3.5 core for powering resizes.
 * Fixes

#### 0.3.1

 * Slight logic change for the better

#### 0.3

 * Changed tag figure to picture, closer to w3 discussions
 * Retina Support

#### 0.1.1

 * Fix for if logic

#### 0.1

 * Initial Release (Hammy Time)

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.5.1**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **12 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **200+**
 *  ເວີຊັນ WordPress ** 3.5 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **3.7.41**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/hammy/)
 * ແທັກ
 * [adaptive](https://lo.wordpress.org/plugins/tags/adaptive/)[figure](https://lo.wordpress.org/plugins/tags/figure/)
   [image](https://lo.wordpress.org/plugins/tags/image/)[images](https://lo.wordpress.org/plugins/tags/images/)
   [responsive](https://lo.wordpress.org/plugins/tags/responsive/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/hammy/advanced/)

## ການໃຫ້ຄະແນນ

 3.3 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 8 ລາຍການ     ](https://wordpress.org/support/plugin/hammy/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/hammy/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 2 ລາຍການ     ](https://wordpress.org/support/plugin/hammy/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/hammy/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 6 ລາຍການ     ](https://wordpress.org/support/plugin/hammy/reviews/?filter=1)

[ເພີ່ມຄຳຄິດເຫັນຂອງຂ້ອຍ](https://wordpress.org/support/plugin/hammy/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/hammy/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Noel Tock ](https://profiles.wordpress.org/noel_tock/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/hammy/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](http://www.noeltock.com)