BMP - bol JPG -re atalakitas

Kis Norbert nkis2 at freemail.hu
Fri Jul 12 15:03:38 CEST 2002


Szia!
> 
> Hogyan tudnam a fenti problemat megoldani?
> 
> BMP  kepeket kellene JPG-re atbuheralni,
> minel egyszerubben -semmi szex...!

Egyszeru nagyon, mi sem vagyunk mazoistak: :)
Az XNWIEW (1M) kepnezo alatt grafikusan, akar teljes 
konyvtarat is tudsz, de ha inyenc vagy, akkor PARANCSSOR 
alatt szinten ezzel a programmal jaro nconvert.exe-vel. 
(796K) Egyszeru, de pofas mindket progi. Semmi sallang, de 
pont azt tudja, amit kell. 
Ja, igen! Ez nem a'm install shield instenverese!!! 
Elinditod, oszt megy, semmi gond. Ha valamit akarsz, akkor
szepen belepsz a view/install-menube, s ott mondhatsz neki 
olyforma dorgedelmeket, hogy:
Add icon to desktop
Add to program menu 
Add to start menu
(Persze egy - egy kulon gomb, amit megnyomsz, nem tortenik 
HDD kerreges, meg semmi, de ott van!)
Azutan ugyanitt kijelolheted, hogy jokora listajabol milyen 
kiterjesztesre telepedjen/ne telepedjen ra, minr deafult. 
(Alapban semmi, de mondhatsz neki ALL-t is) Pl. idiota 
programok altal allandoan atdefinialt viewer-ek pillatnat 
alatti kinyuvasztasara is idealis, mert jobban keznel van, 
mint egyesevel az alapertelmezett kiterjeszteseket 
buhernyalkolni... :)))

Mondani se kell, hogy preview alapertelmezett, kezel 
animalt gifeket, +/--al nagyit, kicsinyit, szinmelyseg, 
forgatas, felbontaskonverzio, szinkorrekciok, s mindez 
filecsoportokra, is elvegezheto szepen. Szoval ez meg van 
irva rendesen, annak ellenere, hogy win ala csinaltak. :)))

Ami engem illet, parancssorbol .BAT-allomannyal 
szoktam csinalni, mert nekem valamiert ez a nyerobb: :)


         Pl: dir *.bmp /b >konvert.bat

Ezutan csinalok egy masik BAT-ot imigyen, mondjuk bmp2jpg
elnevezessel:
             nconvert -in bmp -out jpg %1.bmp

(Persze otthon van egy valag ilyen BAT-om a PATH-ban, minek
mindig firkalgatni... :)))) )

Ja, igen! Vegul egy szovegszerkesztovel (nalam a FAR alatt 
a PE2 van erre befunkcionalva a kiterjeszteseket 
leharaptatom, illetve minden sor ele odablokkvarazsolom:

call bmp2jpg......

Gyors, hatekony, akar teljes alkonyvtarstrukturakra is 
muxik. Igy tetszoleges formatumrol szoktam tetszoleges 
formatumra konvertalni, altalaban szaz, vagy ezerszam.
A BAT-ok 1...3 perc alatt elkeszulnek, a gep meg hadd 
dolgozzon. :))) Egyebkent eleg gyorsan konvertal a progi.

Csak etvagyfokozonak a help-je:

** NCONVERT v2.90 Copyright 1991-99 Pierre-E Gougelet (Dec 
16 1999/11:37:44) **
        Version for Windows 95/98/NT  (All rights reserved)
** This is a freeware software

The JPEG code is based in part on the work of the 
Independent JPEG Group's software.
The PNG code is based in part on the work of the Group 42, 
Inc.

This software is based in part on compression library of 
Jean-loup Gailly and Mark Adler

Usage : NCONVERT.EXE [options] file ...

        Options :
          -quiet            : Quiet mode
          -v[.]             : Verbose
          -in format        : Input format number or name
          -npcd num         : PCD 0:768x512 (default), 
1:384x256, 2:192x128
          -ngrb npic        : HP-48 number of grey : 1, 2 
or 4 (default : 1)
          -ctype type       : Channel Type (Raw)
              grey  : Greyscale (default)
              rgb   : Red,Green,Blue
              bgr   : Blue,Green,Red
              rgba  : Red,Green,Blue,Alpha
              abgr  : Alpha,Blue,Green,Red
              cmy   : Cyan,Magenta,Yellow
              cmyk  : Cyan,Magenta,Yellow,Black
          -corder order     : Channel Order (Raw)
              inter : Interleaved (default)
              seq   : Sequential 
              sep   : Separate
          -size geometry    : Width and height (Raw/YUV)
                Geometry is widthxheight+offset
          -n start end step : Begin End Step (for image 
sequence)
          -o filename       : Output filename
              Use # to specify position of numeric 
enumerator
              Use to specify source filename
          -out format       : Output format number or name
          -D                : Delete original picture
          -c value          : Compression number (default : 
0)
          -q value          : JPEG/PNG quality (default : 
100)
          -i                : Interlaced GIF / Progressive 
JPEG

        Process :
          -average size     : Average (3,5,7,9,11,13)
          -balance r g b    : Color balance
          -binary dither    : Convert in Binary
              pattern : Ordered pattern
              floyd   : Floyd steinberg
              halft45 : Halftone 45
              halft90 : Halftone 90
          -blur percent     : Blur (1...100)
          -brightness value : Modify brightness (-100...100)
          -canvas w h       : Resize canvas
              w h can be percent (ex: -resize 100% 200%)
          -colors num       : Convert in Indexed Colors 
(256, 216, 128, 64, 32, 16 or 8)
          -contrast value   : Modify contrast (-100...100)
          -crop x y w h     : Crop
          -dither           : Use dither for conversion 
(Colors and Grey only)
          -edetail          : Enhance detail
          -eedge percent    : Enhance edges (1...100)
          -edgedetect type  : Edge detect
              light/medium/heavy
          -efocus           : Enhance focus
          -emboss           : Emboss 
          -embossmore       : Emboss more
          -equalize         : Equalize
          -frestore         : Focus restoration
          -gamma value      : Modify gamma (0.01<->5.0
          -gauss size       : Blur gaussian (3,5,7,9,11,13)
          -grey num         : Convert in Grey Scale (256, 
128, 64, 32, 16, 8 or 4)
          -lens percent     : Lens (1...100)
          -log              : Apply logarithmic correction
          -maximum size     : Maximum filter (3,5,7,9,11,13)
          -medianb size     : Median Box filter 
(3,5,7,9,11,13)
          -medianc size     : Median Cross filter 
(3,5,7,9,11,13)
          -minimum size     : Minimum filter (3,5,7,9,11,13)
          -mosaic size      : Mosaic (1...64)
          -negate           : Negate
          -noise reduce     : Reduce noise
          -noise type value 
              uniform   : Add uniform noise
              gaussian  : Add gaussian noise
              laplacian : Add laplacian noise
              poisson   : Add poisson noise
          -normalize        : Normalize
          -oil size         : Oilify (1...16)
          -posterize count  : Posterize (2...256)
          -ratio            : Keep the ratio for scaling
          -rtype            : Type of resampling (default : 
linear)
              quick  : Quick resize
              linear : Bi-linear
          -resize w h      : Scale width-height
              w h can be percent (ex: -resize 100% 200%)
          -rotate degrees   : Rotate
          -sharpen percent  : Sharpen (1...100)
          -shear            : Shear
          -slice            : Slice
          -soften percent   : Soften (1...100)
          -solarize value   : Solarize (1...255)
          -spread amount    : Spread (1...32)
          -swap type        : Swap component
              rbg   : RGB->RBG
              bgr   : RGB->BGR
              brg   : RGB->BRG
              grb   : RGB->GRB
              gbr   : RGB->GBR
          -swirl degrees    : Swirl (1...360)
          -tile size        : Tile (1...64)
          -truecolors       : Convert in True Colors
          -xflip            : Flip horizontal
          -yflip            : Flip vertical
          -waves wavelength phase amount : Waves
              wavelength   : (1.0 50.0)
              phase        : (0.0 360.0)
              amount       : (0.0 100.0)

        Available format:
               Num  Name     Write  Description
                -1                : Automatic (Only for 
input)
                 0 [jpeg    ]  *  : JPEG v6.0 
                 1 [tga     ]  *  : Truevision Targa 
                 2 [tdi     ]     : Explore (TDI) & Maya 
                 3 [soft    ]  *  : Softimage 
                 4 [sgi     ]  *  : RGB Silicon Graphics 
                 5 [tiff    ]  *  : TIFF Revision 6 
                 6 [vista   ]  *  : Vista 
                 7 [ras     ]     : Sun Rasterfile 
                 8 [pict    ]     : Macintosh 
Quickdraw/Pict 
                 9 [alias   ]  *  : Alias Image File 
                10 [bmp     ]  *  : Windows & OS/2 Bitmap 
                11 [iff     ]  *  : Amiga IFF (ILBM & LBM) 
                12 [png     ]  *  : Portable Network 
Graphics 
                13 [mng     ]     : Multiple Network 
Graphics 
                14 [gif     ]  *  : CompuServe GIF 
                15 [pcx     ]  *  : Zsoft Publisher's 
Paintbrush 
                16 [dcx     ]     : Zsoft Multi-page 
Paintbrush 
                17 [pnm     ]  *  : Portable Image 
                18 [rla     ]  *  : Wavefront Raster file 
                19 [rle     ]     : Utah raster image 
                20 [pixar   ]     : Pixar picture file 
                21 [taac    ]     : Sun TAAC file 
                22 [miff    ]  *  : Image Magick file 
                23 [psd     ]     : Adobe Photoshop 
Document 
                24 [psp     ]     : Paint Shop Pro 
                25 [sfw     ]     : Seattle Film Works 
                26 [pwp     ]     : Seattle Film Works 
multi-image 
                27 [scitex  ]     : SciTex 
                28 [cineon  ]  *  : Kodak Cineon 
                29 [hru     ]  *  : HRU 
                30 [gem     ]     : Digital Research (GEM 
Paint) 
                31 [dkb     ]  *  : DKB & Qrt Ray-Tracer 
                32 [cloe    ]     : Cloe Ray-Tracer 
                33 [vivid   ]  *  : Vivid Ray-Tracer 
                34 [mtv     ]  *  : MTV & Rayshade 
                35 [cp8     ]     : CP8 256 Gray Scale 
                36 [speed   ]     : Image Speeder 
                37 [xbm     ]  *  : X11 Bitmap 
                38 [xpm     ]  *  : X11 Pixmap 
                39 [icon    ]     : Sun Icon/Cursor 
                40 [ico     ]  *  : Windows Icon 
                41 [cur     ]     : Windows Cursor 
                42 [clp     ]     : Windows Clipboard 
                43 [cdr     ]     : Corel Draw bitmap 
                44 [fbm     ]     : Fuzzy bitmap 
                45 [pm      ]     : PM 
                46 [cam     ]     : Casio QV-10/100 Camera 
                47 [j6i     ]     : Ricoh Digital Camera 
                48 [kdc     ]     : Kodak DC120 Digital 
Camera 
                49 [tim     ]     : Sony Playstation TIM 
                50 [sj1     ]     : Sega SJ-1 DIGIO 
                51 [fits    ]     : Flexible Image 
Transport System 
                52 [synu    ]     : Synthetic Universe 
                53 [pcd     ]     : Kodak Photo CD 
                54 [xcf     ]     : Gimp Bitmap 
                55 [gbr     ]     : Gimp Brush 
                56 [pat     ]  *  : Gimp Pattern 
                57 [gicon   ]     : Gimp Icon 
                58 [psion3  ]  *  : Psion Serie 3 Bitmap 
                59 [psion5  ]  *  : Psion Serie 5 Bitmap 
                60 [palm    ]  *  : Palm Pilot 
                61 [grob    ]  *  : HP-48/49 GROB 
                62 [ti      ]  *  : TI Bitmap 
                63 [vicar   ]     : Vicar 
                64 [stx     ]     : SBIG CCD camera ST-X 
                65 [viff    ]     : Khoros Visualization 
image file 
                66 [xim     ]     : Xim 
                67 [vpb     ]     : Quantel VPB 
                68 [fit     ]     : FIT 
                69 [degas   ]  *  : Degas & Degas Elite 
                70 [neo     ]     : Neochrome (ST & TT) 
                71 [zzrough ]     : ZZ Rough 
                72 [dali    ]     : Dali Raw 
                73 [stad    ]     : Stad 
                74 [gfaray  ]     : Gfa Raytrace 
                75 [spu     ]     : Spectrum 512 
                76 [spc     ]     : Spectrum 512 
(Compressed) 
                77 [sps     ]     : Spectrum 512 (Smooshed) 
                78 [rix     ]     : ColoRIX 
                79 [cmu     ]     : CMU Window Manager 
                80 [xwd     ]     : X Windows System dump 
                81 [pic     ]     : PC Paint / Pictor Page 
                82 [ilab    ]     : ImageLab 
                83 [msp     ]     : Microsoft Paint 
                84 [calamus ]     : Calamus 
                85 [art     ]     : Artisan 
                86 [aurora  ]     : Aurora 
                87 [qdv     ]     : Qdv (Random Dot 
Software) 
                88 [tdim    ]     : Digital F/X 
                89 [tdim    ]     : Electric Image 
                90 [biorad  ]     : Biorad 
                91 [bob     ]     : Bob Raytracer 
                92 [face    ]     : Usenix FaceServer 
                93 [eps     ]     : Encapsulated Postscript
(Preview) 
                94 [wpg     ]     : Word Perfect Graphics 
                95 [nav     ]     : AirNav 
                96 [prisms  ]     : Prisms 
                97 [fli     ]     : Fli 
                98 [wmf     ]     : Windows Metafile 
                99 [cut     ]     : Dr Halo 
               100 [dbw     ]     : DBW Render 
               101 [acorn   ]     : Acorn Sprite 
               102 [avs     ]     : Stardent AVS X 
               103 [aim     ]     : AIM Grey Scale 
               104 [mac     ]     : Mac Paint 
               105 [tiny    ]     : Tiny 
               106 [doodle  ]     : Doodle 
               107 [artdir  ]     : Art Director 
               108 [z80scr  ]     : Z80 Screen dump 
               109 [z80sna  ]     : Z80 Spectrum Snapshot 
               110 [msx2    ]     : Msx 2 Screen 
               111 [koa     ]     : Koala Paint 
               112 [ocp     ]     : Advanced Art Studio 
               113 [cpc     ]     : Cpc Screen 
               114 [fax     ]     : Fax G3 
               115 [jbig    ]  *  : Jbig 
               116 [dicom   ]     : Dicom 
               117 [hrz     ]     : HRZ 
               118 [uyvyi   ]  *  : YUV 16Bits Interleaved 
               119 [uyvy    ]  *  : YUV 16Bits 
               120 [yuv411  ]     : YUV 4:1:1 
               121 [yuv422  ]     : YUV 4:2:2 
               122 [yuv444  ]     : YUV 4:4:4 
               123 [raw     ]     : Raw 


Hmmm.... Ugye, azert lehet jo programot is irni a mai PC-
kre is??? :)))

Udv.:
          Norbi.







More information about the Elektro mailing list