equal
deleted
inserted
replaced
274 defaultCompressQuality |
274 defaultCompressQuality |
275 ^ 85 |
275 ^ 85 |
276 ! ! |
276 ! ! |
277 |
277 |
278 !JPEGReader class methodsFor:'testing'! |
278 !JPEGReader class methodsFor:'testing'! |
|
279 |
|
280 canRepresent:anImage |
|
281 "return true, if anImage can be represented in my file format. |
|
282 For now, only d24 images are supported." |
|
283 |
|
284 anImage depth == 24 ifTrue:[^ true]. |
|
285 ('JPEGReader [info]: image depth is not 24.') infoPrintCR. |
|
286 ^ false. |
|
287 ! |
279 |
288 |
280 isValidImageFile:aFilenameOrString |
289 isValidImageFile:aFilenameOrString |
281 "return true, if aFileName contains a JPG image. |
290 "return true, if aFileName contains a JPG image. |
282 Only look at the file's name here ..." |
291 Only look at the file's name here ..." |
283 |
292 |