View Full Version : Scalable Vector Graphics Thread


nathan_christopher
24th Aug '07 Fri, 12:48
Hmmm. sa mga web developers at mga theme artists medyo importante ito. pero ,para sa lahat at mga nagnanais na maging theme artists (using carbide 3.1), tingin na din kayo dito.

Ano nga ba ang SVG o Scalable Vector Graphics? Ito ay dinevelop ng W3 Consortium para sa internet. Ang usual na alam kasi natin sa "graphics" ay isang file na composed ng mga pixels - na mas malaki ang resolution, siyempre, mas malaki ang file size.

Pero, nakakita na ba kayo ng isang "image" na hindi naman composed ng pixels? TAMA, SVG ang tawag doon. Ang "image" na nakikita natin sa ating mga browsers (Iexplorer, firefox, etc - na may built-in interpreter ng SVG) ay described ng ilang lines of instruction. Halimbawa, copy and paste nyo ito sa inyong notepad:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">

<rect width="300" height="100"
style="fill:rgb(0,0,255);stroke-width:1;
stroke:rgb(0,0,0)"/>

</svg>

Tapos, save nyo ang file as "sample.svg" (without the quotation marks) kahit saan sa computer nyo (halimbawa sa desktop).

Punta kayo sa desktop at hanapin nyo yung file. Usually, ang icon nya ngayon ay represented ng IExplorer icon. double click nyo ito para mabuksan sa Iexplorer. Ano makikita nyo?

Galeng ano?

heto pa isa:


<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg width="100%" height="100%" version="1.1"
xmlns="http://www.w3.org/2000/svg">

<rect x="20" y="20" width="250" height="250"
style="fill:blue;stroke:pink;stroke-width:5;opacity:0.9"/>

</svg>

Copy and paste ulit sa notepad at bigyan ng filename na sample2.svg. Open nyo ulit ito sa IExplorer o sa Firefox.

Ano makikita nyo? Ang galeng galeng ano?

Pero, hindi natin kailangang maging expert sa XML coding (yun ang tawag sa piece of code na nasa itaas). Bagkus, may mga softwares na available para makapag create ng sarili nating
SVG files, o mag-edit ng mga existing SVG files. Sample ng mga programs ay Illustrator ng Adobe at Freehand naman sa Macromedia.

Sa Carbide 3.1, halos lahat ng mga components ng isang theme doon sa SVG files. Hindi kagaya sa Carbide 1.2, na halos lahat naman ay bitmap files ang components. May advantages at disadvantages naman yung dalawang versions ng carbide, pero ibang topic na yun.

Ang ibig ko lang sabihin, mas magiging madali para sa upcoming themers na gumamit ng SVG dahil nga wala nang kailangang gawing mask..

Eniwey, postulit ako ng iba pang mga tutorials tungkols sa SVG later on. Kayo, kung may gusto kayong i-share, post na rin dito..

-duds-

Mcmms
24th Aug '07 Fri, 19:53
hmm? ulit uli miukhang may mali brah..kasi dapat IExplorer diba notepad pa din eh..

nathan_christopher
25th Aug '07 Sat, 14:45
hmm? ulit uli miukhang may mali brah..kasi dapat IExplorer diba notepad pa din eh..

do ko po yata sure kung naindihan ko yung post mo bro...
paki clear please... tnx...

eniwey, kung isa-save yung text sa notepad as "sample.svg", automatic na ang pwedeng mag-translate nun ay mge browsers kasi may plug-in sila para i-interpret yung instruction at eventually, madi-display yung image sa browser...

-duds

InstilledBee
25th Aug '07 Sat, 16:47
hmm? ulit uli miukhang may mali brah..kasi dapat IExplorer diba notepad pa din eh..

baka nagkamali ka ng pagsave... sa Save as Type ng notepad i-select mo ang "All Files" na option, tsaka mo i-type ang "sample.svg" or "sample2.svg"

duds, this is a very nice thread. more power and sana makapagpost ka ng SVG tutorials kasi interesado ako. :)

Mcmms
26th Aug '07 Sun, 19:19
actually hindi kasi save as "sample.svg" and "sample2.svg" hindi kaya dapat save as .htm try ko ulit thanks

Mcmms
26th Aug '07 Sun, 19:22
sensya na guys ayaw talaga sinunod ko yung istruc nyo..gusto ko pa namans sana makita..

nathan_christopher
28th Aug '07 Tue, 07:59
sensya na guys ayaw talaga sinunod ko yung istruc nyo..gusto ko pa namans sana makita..

ok lang pards.. At least interesado ka sa subject, at natutuwa ako na active na gustong matuto.

Salamat din pala instilledbee sa positive na feedback sa thread na ito. Eniwey, tatapusin ko muna yung paunang tutorial ko dito sa SVG thread bago ko i-post.

Eniwey, attached dito yung SVG file ng sample.svg.

Mcmms
29th Aug '07 Wed, 20:13
naku ayaw talaga yung ginawa mo ginawa ko na yun..ok brah..thanks

nathan_christopher
31st Aug '07 Fri, 12:19
naku ayaw talaga yung ginawa mo ginawa ko na yun..ok brah..thanks

no prob bro. Eniwey, ano palang ginagamit mo na browser? Malamang, baka wala pang SVG viewer plug-in yun kasi hindi mo ma-view yung SVG files...

-dudes

Mcmms
31st Aug '07 Fri, 19:36
no prob bro. Eniwey, ano palang ginagamit mo na browser? Malamang, baka wala pang SVG viewer plug-in yun kasi hindi mo ma-view yung SVG files...

-dudes

hehehe cguro nga..

jetaw03
4th Sep '07 Tue, 08:50
tol sakin unknown file ung nagawa ko dito sa pc ko.. kailangan pa ba ng plug-in para gumana ung code mo? IE6 lng browser ko eh..

InstilledBee
4th Sep '07 Tue, 18:25
bakit ganun kayo may problem sa akin ok naman sya ah? :noidea: try nyo i-open sa firefox :ff:

jetaw03
4th Sep '07 Tue, 18:27
ah sa firefox ba dapat?binura ko na firefox ko eh..

nathan_christopher
5th Sep '07 Wed, 11:37
May mga softwares na free para makabasa ng SVG sa inyong pc. Ang pinaka popular at libre (yata) ay ang Adobe SVG viewer (http://www.adobe.com/svg/)...

Pero,sa pinaka latest version (at least version 1.5) ng firefox ay suportado na nya ang SVG graphics.

heto ang link sa firefox : http://www.mozilla.com/en-US/firefox/

Sa Internet explorer naman, ang kapag na-install na yung Adobe SVG viewer (na nasa itaas), capable na ang IE6 na magview ng SVG - kasi ang Adobe SVG viewer lang ang compatible sa IE6 sa ngayon .

hope this helps.

-dudes

jetaw03
5th Sep '07 Wed, 13:12
May mga softwares na free para makabasa ng SVG sa inyong pc. Ang pinaka popular at libre (yata) ay ang Adobe SVG viewer (http://www.adobe.com/svg/)...

Pero,sa pinaka latest version (at least version 1.5) ng firefox ay suportado na nya ang SVG graphics.

heto ang link sa firefox : http://www.mozilla.com/en-US/firefox/

Sa Internet explorer naman, ang kapag na-install na yung Adobe SVG viewer (na nasa itaas), capable na ang IE6 na magview ng SVG - kasi ang Adobe SVG viewer lang ang compatible sa IE6 sa ngayon .

hope this helps.

-dudes

cge tol..try ko i-download ung svg viewer

nathan_christopher
6th Sep '07 Thu, 09:21
Mga end product ng SVGs nakapost na pala dito. Posts ni shingami..
http://www.symbianize.com/showthread.php?t=10767

Mga iba, nasa illustrator (.ai) format. open nyo sa illustrator at pwedeng i-save as SVG files.

-dudes

InstilledBee
6th Sep '07 Thu, 18:24
post ka pa rin ng tutorials... i wanna learn since this would be a great edge in web design :D nag-aaral din ako ng web design :D

nathan_christopher
7th Sep '07 Fri, 09:01
initial tutorial InstilledBee..

Mga example pero, online, pero dinedescribe nito mga elements ng SVG sa XML level at mga ibat-ibang shpaes at filters na pwedeng gamitin sa SVG...Nasa tut din mga codes kaya pwedeng copy and paste na lang sa notepad para ma-view ang mga examples...

Post ulit ako ng iba.

dudes

nathan_christopher
7th Sep '07 Fri, 09:18
Kapag online naman kayo palagi, pwede nyong puntahan ang mga ito:

http://www.adobe.com/svg/basics/intro.html << Very comprehensive site
http://www.carto.net/papers/svg/samples/
http://www.kevlindev.com/tutorials/basics/index.htm
http://apike.ca/prog_svg.html
http://www.svgelves.com/

Madami pa...

-dudes

nathan_christopher
14th Oct '07 Sun, 12:47
yay, matagal ko nang di na udate ang thread na ito..for the meantime, pwe nating puntahan ang mga links na ito for reference..

http://www.hendersonpetrophysics.com/SVG.html
http://en.wikipedia.org/wiki/Scalable_Vector_Graphics
http://www.zvon.org/xxl/svgReference/Output/
http://www.adobe.com/svg/demos/main.html >> very nice site

InstilledBee
15th Oct '07 Mon, 19:43
dami na nyan chris ah :D

nathan_christopher
15th Oct '07 Mon, 19:55
dami na nyan chris ah :D

thanks bee..actually, lumalaki na talaga ang acceptance ng SVG, kaya kailangan nating humabol..:D