Dear List,
I have written a parse-jpg plugin which rescales JPEG images before
storing them:
public class JPEGParseFilter implements Parser {
...
public Parse getParse(Content content) {
...
content.setContent(scaledImage);
}
}
This works fine when parsing is done fetch-time. So I assume that the
Fetcher stores the content after it has been parsed (if parsing is not
disabled).
However, when I perform a reparse (to scale down the images even
further) the content does not seem to be modified.
Question 1: Is it true that the code above changes the fetched content
before storing it (throwing away the original content)?
Question 2: Can I run this parse plugin to reparse the images and change
the content again (e.g. to make the images smaller, without the need to
refetch all content)? Or is the content write-once during fetch-parse time?
Thanks a lot,
Mathijs
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general