Answers.Body: <p>I know this is of course not an elegant solution, but it works for now. I used twig filters to extract url and alt tag of the image. </p>
  
  <pre><code>&lt;div class="blog-post-featured-image"&gt;
              {% if entry.featuredImage|length %}
                  {{ snippets.image( entry.featuredImage.first(),entry.url )}}
              {% else %} {# For the tumblr imports, extract first image #}
                  {# Extract the src #}
                  {% set spliter = entry.articleBody.type('text').first().text|split('src="') %}
                  {% set spliter = spliter[1]|split('"') %}
                  {% set firstTumblrImage = spliter[0] %}
  
                  {# Extract the alt-Tag of the Featured Image#}
                  {% set spliter = entry.articleBody.type('text').first().text|split('alt="') %}
                  {% set spliter = spliter[1]|split('"') %}
                  {% set imageAltTag = spliter[0] %}
                      &lt;a href="{{ entry.url }}"&gt;&lt;img src="{{ firstTumblrImage }}" alt="{{ imageAltTag }}"&gt;&lt;/a&gt;
              {% endif %}
          &lt;/div&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-24T19:51:18.983Z
Answers.LastActivityDate: 2017-07-24T19:51:18.983Z
Answers.UserDisplayName: Jan
Body: <p>I successfully imported my tumblr blog with the amazing Feedme plugin over the rss feed of the blog. The plugin creates posts and feeds the "title", "date", "tag" and of course the "content" inside my craft and I can assign a field to each of those elements. </p>
  
  <p>Here is the thing: The images in tumblr are included in the content. Feedme isnt able to crawl for img tags and make an asset out of it in craft. So the images are still on tumblr and are just linked in the html:</p>
  
  <pre><code>für Hotels und Gastronomie.&lt;/p&gt;
  &lt;figure data-orig-width="1080" data-orig-height="568" class="tmblr-full"&gt;&lt;img src="http://68.media.tumblr.com/09fe97556d12eb488c91da31c71f44d5/tumblr_inline_ot0whuvZ6y1rft7f2_540.png" title="Online-to-offline Kundenreise" alt="blog bild lokale customer journey" data-orig-width="1080" data-orig-height="568"&gt;&lt;/figure&gt;
  </code></pre>
  
  <p>Does anyone have an idea how I can get the first image in my template? the prettiest solution would be of course if I find a way to make it an asset. But if not, it would be nice if I could crawl the html content for img tags and get the link to the image on the tumblr server......</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-17T16:56:00.200Z
Comments.Text: Could be some with a custom PHP script/Craft plugin. Are you comfortable with that?
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-23T14:36:20.807Z
Comments.Text: This is indeed a bit of a tricky thing at the moment, in that Feed Me won't auto-extract inline image data. This could be fixed by a custom PHP script to extract the content out. We've done this many times, so feel free to get in touch if you would like assistance.
Comments.UserDisplayName: crawf
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-24T19:55:22.707Z
Comments.Text: @crawf I would like to contact you, but I dont know how to write pm in this forum? sorry, I am pretty new here...
Comments.UserDisplayName: Jan
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-07-26T05:28:36.153Z
Comments.Text: @Jan Hit me up on the Craft Slack channel, handle crawf
Comments.UserDisplayName: crawf
Tags: <image><plugin-feedme>
Title: Images from tumblr post
ThreadText: # Images from tumblr post
  
  (Asked by: username_0 on 2017-07-17)
  
  I successfully imported my tumblr blog with the amazing Feedme plugin over the rss feed of the blog. The plugin creates posts and feeds the "title", "date", "tag" and of course the "content" inside my craft and I can assign a field to each of those elements.
  
  Here is the thing: The images in tumblr are included in the content. Feedme isnt able to crawl for img tags and make an asset out of it in craft. So the images are still on tumblr and are just linked in the html:
  
  ```
  für Hotels und Gastronomie.</p>
  <figure data-orig-width="1080" data-orig-height="568" class="tmblr-full"><img src="http://68.media.tumblr.com/09fe97556d12eb488c91da31c71f44d5/tumblr_inline_ot0whuvZ6y1rft7f2_540.png" title="Online-to-offline Kundenreise" alt="blog bild lokale customer journey" data-orig-width="1080" data-orig-height="568"></figure>
  
  ```
  
  Does anyone have an idea how I can get the first image in my template? the prettiest solution would be of course if I find a way to make it an asset. But if not, it would be nice if I could crawl the html content for img tags and get the link to the image on the tumblr server......
  
  **Tags:** image, plugin-feedme
  
  > **Comments:**
  > **username_1**: Could be some with a custom PHP script/Craft plugin. Are you comfortable with that?  
  > **username_2**: This is indeed a bit of a tricky thing at the moment, in that Feed Me won't auto-extract inline image data. This could be fixed by a custom PHP script to extract the content out. We've done this many times, so feel free to get in touch if you would like assistance.  
  > **username_0**: @username_2 I would like to contact you, but I dont know how to write pm in this forum? sorry, I am pretty new here...  
  > **username_2**: @username_0 Hit me up on the Craft Slack channel, handle username_2  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-07-24. Score: 1
  
  I know this is of course not an elegant solution, but it works for now. I used twig filters to extract url and alt tag of the image.
  
  ```
  <div class="blog-post-featured-image">
              {% if entry.featuredImage|length %}
                  {{ snippets.image( entry.featuredImage.first(),entry.url )}}
              {% else %} {# For the tumblr imports, extract first image #}
                  {# Extract the src #}
                  {% set spliter = entry.articleBody.type('text').first().text|split('src="') %}
                  {% set spliter = spliter[1]|split('"') %}
                  {% set firstTumblrImage = spliter[0] %}
  
                  {# Extract the alt-Tag of the Featured Image#}
                  {% set spliter = entry.articleBody.type('text').first().text|split('alt="') %}
                  {% set spliter = spliter[1]|split('"') %}
                  {% set imageAltTag = spliter[0] %}
                      <a href="{{ entry.url }}"><img src="{{ firstTumblrImage }}" alt="{{ imageAltTag }}"></a>
              {% endif %}
          </div>
  
  ```
  
  
  ---
  
  