it would be nice to be able to set more Values when using ImageEncoders for SaveImage/SaveSprite.
e.g. for JPG:
Quality 0-100
[] progressive JPG
[] grayscale JPG
[] Disable color subsampling
maybe SetJPGEncoderPreferences(.....
preferences for ImageEncoders
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
preferences for ImageEncoders
oh... and have a nice day.
Why including a new command?
I would prefer using the Flag-Parameter at SaveImage/Sprite and using constants.
I would prefer using the Flag-Parameter at SaveImage/Sprite and using constants.
PB 4.30
Code: Select all
onErrorGoto(?Fred)
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
I have no problem with implementing a new command (if Fred agrees with your idea).
But basically I prefer using existing commands. Maybe Fred can extend the Save-Commands like this:
Imagine, you want to save more than 1 image at once but with different settings. Then you've got much t write:In my opionion, this would be a disadvantage.
I suggest to await Fred's agreement, otherwise we don't need to think about the 'how'.
But basically I prefer using existing commands. Maybe Fred can extend the Save-Commands like this:
Code: Select all
SaveImage(#Image, FileName$[, Flags[, Mode])
Code: Select all
SetJPEGSettings(#PB_JPEG_Gray)
SaveImage(...)
SetJPEGSettings(#PB_JPEG_Quality, 95)
SaveImage(...)
; and so on
I suggest to await Fred's agreement, otherwise we don't need to think about the 'how'.
PB 4.30
Code: Select all
onErrorGoto(?Fred)
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
So what? When saving images with the SAME settings you...
Just create a macro...
Or use a loop instead...

Just create a macro...

Or use a loop instead...


PB 4.30
Code: Select all
onErrorGoto(?Fred)
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
No idea what to say now?Kaeru Gaman wrote:are you often selling the leather before the calf is born?

I wrote:I suggest to await Fred's agreement, otherwise we don't need to think about the 'how'.

PB 4.30
Code: Select all
onErrorGoto(?Fred)