Re: possible bugs -colorspace IM 6.7.6.5 Q16
Posted: 2012-05-02T18:26:49-07:00
I often make changes to the source of that porting guide. But they often don't get transfered to the actual real web page very often, as such I quite often find the web 'IMv7 porting' guid out of date.NicolasRobidoux wrote:BTW: Pointing image processing tech people to http://www.imagemagick.org/script/porting.php is getting me some \o/ in the return mail.
Note that the only section of that guide I update is the Shell API section. I make notes of changes as I find them, or make them. Eventually all these changes should be migrated into the IMv7 version of "options" and related pages.
At this time I am working on refactoring 'Image Properties and Setting' At least the part that will be backported to IMv6, before starting to add IMv7 additions. Specifically allowing single letter escapes like %w to also be referenced as %[w]
whcih IMv6 currently does not allow - but should.
The MAJOR IMv7 specific change to percent escapes is...
'%' after a number NOT an escape, unless it is a '%[..]'
This is a weird rule, but it will allow percent escapes to be used in
'geometry' arguments. For example
'50%x30%'
In this case the '%x' does NOT get expanded as the '%' follows a number.
This allows geometry args to still come out as 'expected' in a mostly backward
compatible way. And will allow you to use percent escapes in geometry
like these examples...
'%wx%h'
'%[fx:w/2]x%[fx:h/2]'
'%[my:percent]%%x%[my:percent]%%'
All of which should work as the argument intuitively implies.