| | |
| | | /* |
| | | neon-fm - File management extensions to Neon |
| | | fm - File management class library |
| | | Copyright (C) 2024 Ulrich Hilger |
| | | |
| | | This program is free software: you can redistribute it and/or modify |
| | |
| | | datei.setTyp(Datei.TYP_DATEI); |
| | | } |
| | | String lowerName = dateiName.toLowerCase(); |
| | | if (lowerName.endsWith(Const.JPEG) |
| | | || lowerName.endsWith(Const.JPG) |
| | | || lowerName.endsWith(Const.PNG)) { |
| | | if (lowerName.endsWith(ImageFileFilter.JPEG) |
| | | || lowerName.endsWith(ImageFileFilter.JPG) |
| | | || lowerName.endsWith(ImageFileFilter.PNG)) { |
| | | datei.setBild(true); |
| | | String ext = dateiName.substring(dateiName.lastIndexOf(STR_DOT)); |
| | | String ohneExt = dateiName.substring(0, dateiName.lastIndexOf(STR_DOT)); |
| | | datei.setMiniurl(ctxPath + /*"/" + */ fName + ohneExt + Const.TN + ext); |
| | | datei.setMiniurl(ctxPath + /*"/" + */ fName + ohneExt + ImageFileFilter.TN + ext); |
| | | //buildImgSrc(file, datei, ohneExt, ext); |
| | | } |
| | | liste.add(datei); |