'Image Magic' for rebol?
[1/8] from: tim::johnsons-web::com at: 19-Mar-2003 13:39
Hello All:
I'm working on a project with a perl programmer.
We believe that we may need a feature to trim down
an image file size:
Perl has such a feature as a external module, but
my perl programmer isn't up to speed on it yet.
My question is: Does rebol or the rebol community
have such a feature?
I'm researching the library as I speak.
TIA
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com
http://www.johnsons-web.com
[2/8] from: petr:krenzelok:trz:cz at: 20-Mar-2003 8:50
Tim Johnson wrote:
>Hello All:
>I'm working on a project with a perl programmer.
<<quoted lines omitted: 6>>
>I'm researching the library as I speak.
>TIA
Hi,
with Rebol, you are provided with closed feature set. It means, you can
load bmp, jpg, gif, gifanim, png and save as bmp and png - that should
provide you with some means of compression. If you want to try to do
something on your own in rebol level, I fear you will be slow. XxY image
means lots of pixels to traverse using some loop + some calculations ....
You can, however, link Rebol to libraries. It requires /Pro license
though (or new SDK, to allow you to encap and release your app, if you
want to provide it for free).
But, last two or so months proved, that not having free library and
shell components in free versions, is holding further rebol accpetance.
I tried to defend Rebol (mainly because I have different position and
some concrete plans for my rebol usage, so I don't hesitate to byu
commercial versions), but it really showed as a show-stopper for rebol.
It is long time we (ehm, especially me :-) suggest RT to change their
opinion, because I am not sure that /Pro sales outweight the profit,
which could be gained, if those components would be free, or at least
tied to royalty shceme = free for development and usage ... and if you
charge for your work, then royalty would be payed back to RT ... maybe
that way more library interfaces would appear and overall benefit would
be higher ... but who knows ...
cheers,
-pekr-
[3/8] from: g:santilli:tiscalinet:it at: 20-Mar-2003 9:48
Hi Tim,
On Wednesday, March 19, 2003, 11:39:36 PM, you wrote:
TJ> We believe that we may need a feature to trim down
TJ> an image file size:
What do you mean by "trim down size"? Compression? Or scaling a
(for e.g.) 200x200 image to a 100x100 one?
If the former, you might try SAVE/PNG, but I'm not sure what level
of compression REBOL is using. If the latter, you can do that
using the ASPECT effect, then converting the face to an image and
saving it; however, you don't get the same level of quality you
would get with most tools out there that do the same thing.
AFAIK ImageMagik is a package of command line tools to manipulate
images; if that is what you are referring to, I think it does not
require any advanced knowledge using it: you just call the
appropriate tool and it reads your image and saves it back after
processing.
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[4/8] from: bry:itnisk at: 20-Mar-2003 11:35
>AFAIK ImageMagik is a package of command line tools to manipulate
>images; if that is what you are referring to, I think it does not
>require any advanced knowledge using it: you just call the
>appropriate tool and it reads your image and saves it back after
>processing.
ImageMagick (http://www.imagemagick.org/) can be used from the command
line however it also provides apis for different programming languages
Perl, C++, C, Python, PHP, or Java can call imagemagick functions from
directly within the language, not familiar with the others but have
looked a bit at magick++ which is for use within c++. If you're on a
windows platform there's an ImageMagickObject OLE control which
obviously allows you to use imagemagick directly from within com capable
languages/environments. For coldfusion one can use Alagad Magick Tag,
and there is also a ruby extension to imagemagick.
I love imagemagick. It would be so cool if there was a rebol interface
to these tools.
[5/8] from: antonr:iinet:au at: 20-Mar-2003 21:31
I think rebol saves a PNG using only
basic compression offered by PNG.
So I've seen much better optimization by
Photoshop.
I made a function that will trim the
borders of an image!
Find it here:
http://www.lexicon.net/anton/rebol/library/trim-image.r
Anton.
[6/8] from: cyphre:seznam:cz at: 20-Mar-2003 12:27
Bryan,
I had a quick look on the ImageMagick site....It seems you only need Rebol
with Library interface feature (such as /Pro /Command or SDK), libMagick.a,
libMagick.so, or Magick.dll depending on your system, the API docs and
enough time to write Rebol interface with ImageMagick API. I did some
experiments with simmilar package(XnView / GFL SDK) and Rebol worked well...
regards
Cyphre
[7/8] from: petr:krenzelok:trz:cz at: 20-Mar-2003 12:16
bryan wrote:
>>AFAIK ImageMagik is a package of command line tools to manipulate
>>images; if that is what you are referring to, I think it does not
<<quoted lines omitted: 14>>
>I love imagemagick. It would be so cool if there was a rebol interface
>to these tools.
together with Cyphre we did some test interface for
http://www.xnview.com library - it is completly free, although the
viewer is not fastest on earth, but it supports some +300 image formats
... but even then - who is able to use such interface with rebol? Only
ppl owning /Pro license ...
-pekr-
[8/8] from: bry:itnisk at: 20-Mar-2003 12:53
>I had a quick look on the ImageMagick site....It seems you only need
Rebol
>with Library interface feature (such as /Pro /Command or SDK),
libMagick.a,
>libMagick.so, or Magick.dll depending on your system, the API docs and
>enough time to write Rebol interface with ImageMagick API.
That damn time thing being the killer.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted