@ -57,6 +57,7 @@ import com.drew.metadata.exif.GpsDirectory;
import net.yacy.cora.document.id.AnchorURL ;
import net.yacy.cora.document.id.DigestURL ;
import net.yacy.cora.document.id.MultiProtocolURL ;
import net.yacy.cora.federate.solr.connector.SolrServerConnector ;
import net.yacy.cora.util.ConcurrentLog ;
import net.yacy.document.AbstractParser ;
import net.yacy.document.Document ;
@ -76,10 +77,14 @@ public class genericImageParser extends AbstractParser implements Parser {
super ( "Generic Image Parser" ) ;
SUPPORTED_EXTENSIONS . add ( "jpe" ) ; // not listed in ImageIO extension but sometimes uses for jpeg
SUPPORTED_EXTENSIONS . addAll ( Arrays . asList ( ImageIO . getReaderFileSuffixes ( ) ) ) ;
SUPPORTED_MIME_TYPES . add ( "image/jpg" ) ; // this is in fact a 'wrong' mime type. We leave it here because that is a common error that occurs in the internet frequently
SUPPORTED_MIME_TYPES . addAll ( Arrays . asList ( ImageIO . getReaderMIMETypes ( ) ) ) ;
try {
SUPPORTED_EXTENSIONS . addAll ( Arrays . asList ( ImageIO . getReaderFileSuffixes ( ) ) ) ;
SUPPORTED_MIME_TYPES . addAll ( Arrays . asList ( ImageIO . getReaderMIMETypes ( ) ) ) ;
} catch ( NoSuchMethodError e ) {
ConcurrentLog . logException ( e ) ;
}
}
@Override