T
T
Trahbumbeiten2014-11-27 15:14:30
Parsing
Trahbumbeiten, 2014-11-27 15:14:30

How to cut out images that are smaller than a certain size using REGXP?

When parsing web pages (using the Yahoo Pipes service), a problem arises: all sorts of emoticons are parsed, icons are unnecessary. What should be the REGEX for clipping images less than 200px wide, for example?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2014-11-27
@gbg

If the image size is not specified inside the tag, the only way to find out is to download the file with it, at least partially. REGEX won't help here.
And if the sizes are still present, there is another problem - parsing XML - figurative data is needed not with regular expressions, that's for sure.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question