# What is extractable from an image using the attachment plugin?

**URL:** https://discuss.elastic.co/t/what-is-extractable-from-an-image-using-the-attachment-plugin/12941
**Category:** Elasticsearch
**Created:** [July 25, 2013, 3:46pm UTC](https://discuss.elastic.co/t/what-is-extractable-from-an-image-using-the-attachment-plugin/12941 "2013-07-25T15:46:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kash](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@Kash](https://discuss.elastic.co/u/Kash)
#### Post date: [July 25, 2013, 3:46pm UTC](https://discuss.elastic.co/t/what-is-extractable-from-an-image-using-the-attachment-plugin/12941/1 "2013-07-25T15:46:15Z")

</div>

Hi,

I am trying to work out the limits of what is possible with the attachment  
plugin for elasticsearch. Working with document based attachments is  
absolutely fine and I have no problem with that. However, I would like to  
know what exactly can I extract from image attachments? Other than image  
metadata (e.g. EXIF) can I expect the plugin to perform a sort of OCR  
function, and recognise when an image contains text and then make that text  
searchable?

I've tried it locally, and it didn't work, but I wanted to ask other users  
in case they've successfully been able to get this to work, and I'm doing  
something wrong.

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [July 26, 2013, 6:05am UTC](https://discuss.elastic.co/t/what-is-extractable-from-an-image-using-the-attachment-plugin/12941/2 "2013-07-26T06:05:30Z")

</div>

Hey,

the attachment plugin does not use any OCR recognition. It uses Apache Tika  
for content extraction. See [http://tika.apache.org/](http://tika.apache.org/)

--Alex

On Thu, Jul 25, 2013 at 5:46 PM, Kashif Nasir [kashif.nasir@gmail.com](mailto:kashif.nasir@gmail.com)wrote:

> Hi,
> 
> I am trying to work out the limits of what is possible with the attachment  
> plugin for elasticsearch. Working with document based attachments is  
> absolutely fine and I have no problem with that. However, I would like to  
> know what exactly can I extract from image attachments? Other than image  
> metadata (e.g. EXIF) can I expect the plugin to perform a sort of OCR  
> function, and recognise when an image contains text and then make that text  
> searchable?
> 
> I've tried it locally, and it didn't work, but I wanted to ask other users  
> in case they've successfully been able to get this to work, and I'm doing  
> something wrong.
> 
> Thanks!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 26, 2013, 6:25am UTC](https://discuss.elastic.co/t/what-is-extractable-from-an-image-using-the-attachment-plugin/12941/3 "2013-07-26T06:25:37Z")

</div>

Relative to this discussion: [Adding OCR support · Issue #10 · elastic/elasticsearch-mapper-attachments · GitHub](https://github.com/elasticsearch/elasticsearch-mapper-attachments/issues/10)

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 26 juil. 2013 à 08:05, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) a écrit :

Hey,

the attachment plugin does not use any OCR recognition. It uses Apache Tika for content extraction. See [http://tika.apache.org/](http://tika.apache.org/)

--Alex

On Thu, Jul 25, 2013 at 5:46 PM, Kashif Nasir [kashif.nasir@gmail.com](mailto:kashif.nasir@gmail.com) wrote:

> Hi,
> 
> I am trying to work out the limits of what is possible with the attachment plugin for elasticsearch. Working with document based attachments is absolutely fine and I have no problem with that. However, I would like to know what exactly can I extract from image attachments? Other than image metadata (e.g. EXIF) can I expect the plugin to perform a sort of OCR function, and recognise when an image contains text and then make that text searchable?
> 
> I've tried it locally, and it didn't work, but I wanted to ask other users in case they've successfully been able to get this to work, and I'm doing something wrong.
> 
> ## Thanks!
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 2:24am UTC](https://discuss.elastic.co/t/what-is-extractable-from-an-image-using-the-attachment-plugin/12941/4 "2017-07-06T02:24:25Z")

</div>


