Title: WP-Auto Image Grabber
Author: Meitar
Published: <strong>31 de Outubro, 2010</strong>
Last modified: 28 de Febreiro, 2011

---

Buscar plugins

Este plugin **non se actualizou en máis de 2 anos**. É posible que xa non sexa compatible
ou mantido por ninguén, ou podes ter problemas de compatibilidade cando se usa con
novas versións de WordPress.

![](https://s.w.org/plugins/geopattern-icon/wp-auto-image-grabber.svg)

# WP-Auto Image Grabber

 Por [Meitar](https://profiles.wordpress.org/meitar/)

[Descargar](https://downloads.wordpress.org/plugin/wp-auto-image-grabber.zip)

 * [Detalles](https://gl.wordpress.org/plugins/wp-auto-image-grabber/#description)
 * [Valoracións](https://gl.wordpress.org/plugins/wp-auto-image-grabber/#reviews)
 *  [Instalación](https://gl.wordpress.org/plugins/wp-auto-image-grabber/#installation)
 * [Desenvolvemento](https://gl.wordpress.org/plugins/wp-auto-image-grabber/#developers)

 [Soporte](https://wordpress.org/support/plugin/wp-auto-image-grabber/)

## Descrición

Inserts an image from a page you link to at the start of your blog post. A simple
algorithm tries to get a “main content” image (rather than an advertisement), automatically
providing your post with relevant, attributed artwork. This is especially useful
for bloggers who syndicate posts to sites like Facebook or Digg, which use the first
image in a post as a thumbnail for their post.

This plugin **requires PHP 5**; sites running on PHP 4 will produce fatal errors.

By default, the plugin will follow the first link in your blog post and grab what
it thinks is an appropriate main content image from there. If your posts follow 
a particular structure or pattern, you can tell the plugin to follow a certain link(
such as a link with a particular `class`) by setting the `Pointer element for destination
page` value to an XPath query that returns the link you want.

For instance, the following XPath query will match the first link with a class of`
grab-me`:

    ```
    //a[@class="grab-me"][1]
    ```

Here’s an XPath query that will match the first link within the very last paragraph
of your post:

    ```
    //p[position()=last()]/a[1]
    ```

For more XPath (and XQuery) syntax examples, refer to the [XPath specification at the W3C](http://www.w3.org/TR/xpath/).
If you’re a developer, you may also find several [XPath tools](https://developer.mozilla.org/en/XPath#Tools)
helpful.

Additionally, this plugin allows you to set a custom `class` value on the `<img>`
element that it adds to your post by specifying it in the `Image class value` setting.
For maximum compatibility, consider using one of the [WordPress-generated classes](https://codex.wordpress.org/CSS#WordPress_Generated_Classes)
most themes utilize. For instance, using `alignright` will probably make the automatically-
added image float to the right.
 This plugin uses [PHP5’s DOMDocument methods](http://www.php.net/manual/en/book.dom.php)
to parse both your post and the remote page. It uses [XPath](http://en.wikipedia.org/wiki/XPath)
to query the DOM.

## Capturas

[⌊The WP-Auto Image Grabber plugin options.⌉⌊The WP-Auto Image Grabber plugin options
.⌉[

The WP-Auto Image Grabber plugin options.

## Instalación

 1. Download the plugin file.
 2. Unzip the file into your ‘wp-content/plugins/’ directory.
 3. Go to your WordPress administration panel and activate the plugin.

## Preguntas frecuentes

  Will the plugin change my posts, database, or anything else?

No; this plugin uses [WordPress filters](https://codex.wordpress.org/Plugin_API/Filter_Reference)
to make changes on-the-fly. It does not change the content of your posts in any 
way, and it uninstalls cleanly, without leaving a trace. 🙂

  Does the plugin save the images or offer any caches?

No, not at this time, but I’m hoping to add this optional capability to future versions
of the plugin. ([Patches welcome](http://github.com/meitar/wp-auto-image-grabber/issues).)

## Comentarios

Non hai recensións para este plugin.

## Colaboradores e desenvolvedores

“WP-Auto Image Grabber” é un software de código aberto. As seguintes persoas colaboraron
con este plugin.

Colaboradores

 *   [ Meitar ](https://profiles.wordpress.org/meitar/)

[Traduce “WP-Auto Image Grabber” ao teu idioma.](https://translate.wordpress.org/projects/wp-plugins/wp-auto-image-grabber)

### Interesado no desenvolvemento?

[Revisa o código](https://plugins.trac.wordpress.org/browser/wp-auto-image-grabber/),
bota unha ollada ao[repositorio SVN](https://plugins.svn.wordpress.org/wp-auto-image-grabber/),
ou subscríbete ao [log de desenvolvemento](https://plugins.trac.wordpress.org/log/wp-auto-image-grabber/)
por [RSS](https://plugins.trac.wordpress.org/log/wp-auto-image-grabber/?limit=100&mode=stop_on_copy&format=rss).

## Rexistro de cambios

#### 0.3.1

 * Fix bug causing plugin to throw fatal error when remote document could not be
   parsed.

#### 0.3

 * New option to customize the remote main image search patterns.
 * Fix bug where plugin didn’t activate with proper default options.
 * Minor code cleanup.

#### 0.2

 * Minor code clarity improvements, more comprehensive “main image” pattern matching.

#### 0.1

 * Initial development version.

## Meta

 *  Versión **0.3.1**
 *  Última actualización **Fai 15 anos**
 *  Instalacións activas **20+**
 *  Versión de WordPress ** 2.6 ou superior **
 *  Probado ata **3.1.4**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-auto-image-grabber/)
 * Etiquetas
 * [automation](https://gl.wordpress.org/plugins/tags/automation/)[images](https://gl.wordpress.org/plugins/tags/images/)
 *  [Vista avanzada](https://gl.wordpress.org/plugins/wp-auto-image-grabber/advanced/)

## Valoracións

Aínda non se enviaron valoracións.

[Your review](https://wordpress.org/support/plugin/wp-auto-image-grabber/reviews/#new-post)

[Ver todas as valoracións](https://wordpress.org/support/plugin/wp-auto-image-grabber/reviews/)

## Colaboradores

 *   [ Meitar ](https://profiles.wordpress.org/meitar/)

## Soporte

Tes algo que dicir? Necesitas axuda?

 [Ver o foro de soporte](https://wordpress.org/support/plugin/wp-auto-image-grabber/)

## Doar

Queres apoiar o progreso deste plugin?

 [ Dona a este plugin ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=TJLPJYXHSRBEE&lc=US&item_name=Donation%20to%20support%20WP%2dAuto%20Image%20Grabber%20plugin&item_number=wp%2dauto%2dimage%2dgrabber&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)