Skip to content

[8.0][html_image_url_extractor] Image extractor from HTML fields. - #354

Merged
pedrobaeza merged 2 commits into
8.0from
unknown repository
May 5, 2016
Merged

[8.0][html_image_url_extractor] Image extractor from HTML fields.#354
pedrobaeza merged 2 commits into
8.0from
unknown repository

Conversation

@yajo

@yajo yajo commented Feb 10, 2016

Copy link
Copy Markdown
Member

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (OCA/website#163), or to create a slider with all images from it.

Comment thread html_imgs/__openerp__.py
],
},
"depends": [
"base",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

base or website?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense to use it mostly in website, but there's no real dependency, so I'm not adding it.

@yajo

yajo commented Feb 17, 2016

Copy link
Copy Markdown
Member Author

Could somebody please tag this as "needs review"?

@pedrobaeza

Copy link
Copy Markdown
Member

Done

@sebalix

sebalix commented Feb 17, 2016

Copy link
Copy Markdown
Contributor

Would there be an interest to have just one module (#354 + #355) for all these kind of utilities? They both add functions to ir.fields.converter.

@yajo

yajo commented Feb 17, 2016

Copy link
Copy Markdown
Member Author

The ir.fields.converter is chosen just because the name somehow fits the purpose of these modules, but they really don't have much to do with the rest of that model's logic, and don't seem very related among them. But let's hear what others think.

@sebalix

sebalix commented Feb 17, 2016

Copy link
Copy Markdown
Contributor

Yes, I was just wondering about the future if we create one module for one function. But it is probably easier to maintain/migrate like that.

@pedrobaeza

Copy link
Copy Markdown
Member

Call the module html_image_url_extractor.

@yajo

yajo commented Apr 4, 2016

Copy link
Copy Markdown
Member Author

I already have some modules that depend on this one in production, and some PR open linked to it. If you don't mind, please let me keep the name to avoid much extra work on that. Besides, it matches the style of the just merged #355, and will be combined with it in most cases.

@pedrobaeza

Copy link
Copy Markdown
Member

Sorry, but the name include plurals and it doesn't reflect the purpose of the module. Another name can be suggested, but not the original one with plural. Although now I see that the one you mention in the PR is not the most suitable, at least it doesn't contain plural.

It's very easy to change the name in your installation with openupgradelib. There's a direct method for doing it. I do it via the shell.

@yajo

yajo commented Apr 4, 2016

Copy link
Copy Markdown
Member Author

I decided to include plurals this time because it provides a generator, which must always be iterated.

Anyways I'm OK with what you say. Just keep in mind this will take much longer than a simple mv && git push.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.
@yajo yajo changed the title [8.0][html_imgs] Image extractor from HTML fields. [8.0][html_image_url_extractor] Image extractor from HTML fields. Apr 5, 2016
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 56.377% when pulling 7508964 on grupoesoc:html_images into d8413ed on OCA:8.0.

@yajo

yajo commented Apr 5, 2016

Copy link
Copy Markdown
Member Author

Module name fixed. Rebased, squashed.

Comment thread html_image_url_extractor/README.rst Outdated
Images from HTML field
======================

This module extracts image URLs from any chunk of HTML, in appearing order.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module includes a method that extracts...

@pedrobaeza

Copy link
Copy Markdown
Member

Little comments, but 👍

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.2%) to 56.403% when pulling b9ea2a4 on grupoesoc:html_images into d8413ed on OCA:8.0.

@yajo

yajo commented Apr 5, 2016

Copy link
Copy Markdown
Member Author

All fixed.

@carlosdauden

Copy link
Copy Markdown
Contributor

👍

@rafaelbn

Copy link
Copy Markdown
Member

👍 we are already using this module

@rafaelbn

Copy link
Copy Markdown
Member

cc @antespi

@pedrobaeza
pedrobaeza merged commit e518a89 into OCA:8.0 May 5, 2016
@yajo
yajo deleted the html_images branch May 10, 2016 07:59
yajo pushed a commit to Tecnativa/website that referenced this pull request Jul 4, 2016
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
gfcapalbo pushed a commit to gfcapalbo/website that referenced this pull request Jul 19, 2016
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
gfcapalbo pushed a commit to gfcapalbo/website that referenced this pull request Sep 15, 2016
[8.0][website_blog_excerpt_img] New layout for blog.

Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355

Rephrasing.

Default value for `background_image` is usually something like `http://localhost/blog/our-news-1/post/blog-post-title-3?enable_editor=1`, not empty, so fixing here to avoid failure loading empty covers.

Simpler logic and better layout in phones.

Fix bug in generated images, add convenient classes.

The output of some images was a generator instead of an URL.

I add excerpt-txt and excerpt-img classes for make life easier for
themes.

Add basic styling.

All images now have the same height, and excerpts are 80 words long,
which mostly matches the image height.

Update for upstream module rename.

Initial commit

[IMP] Improved changing images and added backend view

[ADD] Readme

[FIX] New lines at end of xml files

[FIX] Removed unnecessary css class

[UPD] addons table in README.md

[ADD] setup.py

OCA Transbot updated translations from Transifex

first release of website_canonical_url

add a proper description

correct import according to review

FIX the review remarks

bug fixes + add languages

clean the code

fix README file

[FIX] remove empty section from README.rst

[IMP] add pagination support

[NEW][8.0] website_snippet_country_dropdown: New base module for country dropdown flags.

Add demo page.

CSS to Sass. Include compiled version and CSS map.

Fix typo.

Refactor snippet code.

- The `js_country_dropdown` class is added automatically by the template.
- Add `extra_class` variable to highest div element. You can set it to `has-error` for example.
- Add `default_value` variable to autopopulate the inputs.
- `default_country` is smarter now.

Translate to Spanish.

[UPD] addons table in README.md

[ADD] setup.py

[8.0][IMP][website_snippet_country_dropdown] Choose user's country by default.

With this patch, when the currently logged-in user has a country in its profile, it will be chosen by default for the flag.

[UPD] addons table in README.md

Update README.rst

Update README.rst

OCA Transbot updated translations from Transifex

Adding module website twitter no external dependencies

HB connection with token

working version with application token request

adding formatting
adding parametric support

images and frontend

Better data model
Parametric stuff

Major fix

views and js fixes

FIX Naming, now js is recognized

Human readable name
fix js error

Refactoring
Add theming
Theming in snippet
Menu
Documentation

Cleanup

remove required

Add dependency to website_parameterized_snippet

flake8

better placement of menues in knowledge

menu fix

fix menu permissions

added explicit security for therp website

admin access and user access

remove group, security managed on a model level

access to all

Feed lenght managment

remove therp branding

improve UL look and correct color of h5

flake8
cubells pushed a commit to Tecnativa/server-tools that referenced this pull request Nov 28, 2016
* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.
moylop260 pushed a commit that referenced this pull request Nov 29, 2016
* Image extractor from HTML fields. (#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
yajo pushed a commit to Tecnativa/website that referenced this pull request Dec 19, 2016
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
yajo pushed a commit to Tecnativa/website that referenced this pull request Dec 22, 2016
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
yajo pushed a commit to Tecnativa/website that referenced this pull request Dec 22, 2016
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
yajo pushed a commit to Tecnativa/website that referenced this pull request Dec 27, 2016
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
yajo pushed a commit to Tecnativa/website that referenced this pull request Dec 28, 2016
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
yajo pushed a commit to Tecnativa/website that referenced this pull request Jan 4, 2017
Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355
yajo pushed a commit to Tecnativa/server-tools that referenced this pull request Jun 22, 2017
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
yajo pushed a commit to Tecnativa/server-tools that referenced this pull request Jul 17, 2017
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
rafaelbn pushed a commit to OCA/website that referenced this pull request Oct 12, 2017
* [8.0][website_blog_excerpt_img] New layout for blog.

Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355

* Default value for `background_image` is usually something like `http://localhost/blog/our-news-1/post/blog-post-title-3?enable_editor=1`, not empty, so fixing here to avoid failure loading empty covers.

* Simpler logic and better layout in phones.

Fix bug in generated images, add convenient classes.

The output of some images was a generator instead of an URL.

I add excerpt-txt and excerpt-img classes for make life easier for
themes.

Add basic styling.

All images now have the same height, and excerpts are 80 words long,
which mostly matches the image height.

Update for upstream module rename.

* OCA Transbot updated translations from Transifex

* [9.0][website_blog_excerpt_img] Migrate, LGPL.

Relicensed, migrated, new tests.
tarteo pushed a commit to tarteo/server-tools that referenced this pull request Feb 14, 2018
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
MrFangD pushed a commit to MrFangD/server-tools that referenced this pull request Nov 3, 2018
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
cristinamartinrod pushed a commit to Tecnativa/server-tools that referenced this pull request Feb 12, 2019
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
cristinamartinrod pushed a commit to Tecnativa/website that referenced this pull request Feb 15, 2019
* [8.0][website_blog_excerpt_img] New layout for blog.

Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355

* Default value for `background_image` is usually something like `http://localhost/blog/our-news-1/post/blog-post-title-3?enable_editor=1`, not empty, so fixing here to avoid failure loading empty covers.

* Simpler logic and better layout in phones.

Fix bug in generated images, add convenient classes.

The output of some images was a generator instead of an URL.

I add excerpt-txt and excerpt-img classes for make life easier for
themes.

Add basic styling.

All images now have the same height, and excerpts are 80 words long,
which mostly matches the image height.

Update for upstream module rename.

* OCA Transbot updated translations from Transifex

* [9.0][website_blog_excerpt_img] Migrate, LGPL.

Relicensed, migrated, new tests.
yajo added a commit to Tecnativa/website that referenced this pull request Apr 23, 2019
* [8.0][website_blog_excerpt_img] New layout for blog.

Add an excerpt and an image taken from the post to the blog summary page.

To make this work, these open PR need to be merged:

- OCA/server-tools#354
- OCA/server-tools#355

* Default value for `background_image` is usually something like `http://localhost/blog/our-news-1/post/blog-post-title-3?enable_editor=1`, not empty, so fixing here to avoid failure loading empty covers.

* Simpler logic and better layout in phones.

Fix bug in generated images, add convenient classes.

The output of some images was a generator instead of an URL.

I add excerpt-txt and excerpt-img classes for make life easier for
themes.

Add basic styling.

All images now have the same height, and excerpts are 80 words long,
which mostly matches the image height.

Update for upstream module rename.

* OCA Transbot updated translations from Transifex

* [9.0][website_blog_excerpt_img] Migrate, LGPL.

Relicensed, migrated, new tests.
tarteo pushed a commit to tarteo/server-tools that referenced this pull request Jan 9, 2020
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
victoralmau pushed a commit to Tecnativa/server-tools that referenced this pull request Feb 24, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
victoralmau pushed a commit to Tecnativa/server-tools that referenced this pull request Mar 15, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
ThomasBinsfeld pushed a commit to acsone/server-tools that referenced this pull request Mar 23, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
hkapatel-initos pushed a commit to initOS/server-tools that referenced this pull request Jul 2, 2021
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
mtelahun pushed a commit to mtelahun/server-tools that referenced this pull request Sep 5, 2022
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
victoralmau pushed a commit to Tecnativa/server-tools that referenced this pull request Feb 27, 2023
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
adasatorres pushed a commit to adasatorres/server-tools that referenced this pull request Aug 3, 2023
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (10.0)
kaynnan pushed a commit to Escodoo/server-tools that referenced this pull request Jul 11, 2025
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
kaynnan pushed a commit to Escodoo/server-tools that referenced this pull request Aug 21, 2025
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
WesleyOliveira98 pushed a commit to Escodoo/server-tools that referenced this pull request Feb 25, 2026
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
WesleyOliveira98 pushed a commit to Escodoo/server-tools that referenced this pull request Feb 25, 2026
* Image extractor from HTML fields. (OCA#354)

* [8.0][html_image_url_extractor] Image extractor from HTML fields.

This technical utility allows the developer to get a list of image URLs from any piece of HTML.

You can use it for example, to get the cover image from a blog post (upcoming module), or to create a slider with all images from it.

* [9.0] [MIG] html_image_url_extractor
 * Updated README.rst

OCA Transbot updated translations from Transifex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants