Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Image manipulation (https://forums.graalonline.com/forums/showthread.php?t=134263961)

xAndrewx 07-20-2011 08:19 AM

Image manipulation
 
Hiya,

Is there any Graal coding which can manipulate an image?

Say if I uploaded a hat image, it would crop down the hat facing down creating an icon. If not- does anyone know any PHP would can do this?

Thanks

Hezzy002 07-20-2011 08:46 AM

You can host a PHP server using the GD library or something, send the image to the server, modify it, and download the modified image back to the server (or at least the client, I can't remember if the server has this functionality), all from GS2.

DustyPorViva 07-20-2011 09:03 AM

Quote:

Originally Posted by xAndrewx (Post 1659544)
Hiya,

Is there any Graal coding which can manipulate an image?

Say if I uploaded a hat image, it would crop down the hat facing down creating an icon. If not- does anyone know any PHP would can do this?

Thanks

Could try manipulating it in a drawing panel and saving it? Not sure how powerful the saving mechanisms are though.

cbk1994 07-20-2011 09:04 AM

Well, you can certainly do it with PHP, but you should be able to do it via GScript with TDrawingPanel.

Jer made an example of what you can do with TDrawingPanel here. See also the wiki page here. Sounds like drawImageRectangle is what you're looking for.

xAndrewx 07-20-2011 06:41 PM

Love it!! love you guys xxx


All times are GMT +2. The time now is 07:04 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.