The Dark Side of Hardware Upgrade Forum

...bringing out the worst in you since 2003...
Oggi è mer ott 07, 2026 11:08 pm

Tutti gli orari sono UTC +1 ora


-->
-->

Apri un nuovo argomento Rispondi all’argomento  [ 13 messaggi ] 
Autore Messaggio
 Oggetto del messaggio: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 10:10 am 
Per mio padre, la cosa più semplice e automatica possibile, un software che prenda 4 foto, le metta insieme e poi ridimensioni a 800x600 l'immagine che ne esce fuori.
Any idea?
Top
  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 11:45 am 
Schiavo
Avatar utente
Iscritto il: ven lug 16, 2010 11:13 am
Messaggi: 716
Località: Esiliato da Tristram
Cioè, vuoi che le immagini vengano sovrapposte (banalmente, ogni pixel dell'immagine risultante è la media dei 4 colori delle immagini sorgenti), oppure semplicemente affiancate? E nel secondo caso in che modo? 2 in alto e 2 in basso? Tutte in senso orizzontale? A macchia di leopardo stitico?
_________________
Il sole è giallo
Top
 Profilo Non connesso  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 11:48 am 
yorkeiser ? ha scritto:
Cioè, vuoi che le immagini vengano sovrapposte (banalmente, ogni pixel dell'immagine risultante è la media dei 4 colori delle immagini sorgenti), oppure semplicemente affiancate? E nel secondo caso in che modo? 2 in alto e 2 in basso? Tutte in senso orizzontale? A macchia di leopardo stitico?


In tabella 2x2, due righe, due colonne :wat:
Top
  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 12:08 pm 
Schiavo
Avatar utente
Iscritto il: ven lug 16, 2010 11:13 am
Messaggi: 716
Località: Esiliato da Tristram
Boh, io uso GIMP e si fa in un nanosecondo, però ci vuole un minimo di pratica (giusto per trovare le voci giuste nei menu), come credo per qualsiasi programma di fotorattoppo.
http://gimpitalia.it/forum/viewtopic.php?f=23&t=15820

Alternativamente, fagli una tabella HTML 2x2, fissi la dimensione a 800x600, cell size = 50%, height=300, border=0, e gli fai editare a mano il path delle immagini da caricare. Se hai un editor html ancora meglio.
_________________
Il sole è giallo
Top
 Profilo Non connesso  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 12:36 pm 
Schiavo
Avatar utente
Iscritto il: lun lug 19, 2010 6:08 pm
Messaggi: 7370
Località: Smileland (già Crucconia)
Puoi usare gimp oppure photoshop (forse anche paint) via AutoIt (ma devi crearti uno script da solo) o altri programmi OLE/COM automation.
_________________
Se nel forum sono attivo vuol dire che al lavoro sto facendo documentazione.
Top
 Profilo E-mail Non connesso  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 12:45 pm 
Gimp gliel'ho installato... ma si dovrebbe scrivere tutto su carta e ci metterebbe una vita.... ho provato a dare un occhiata allo scripting di Gimp, e dovrei mettermi a studiarlo un po.... ora provo a vedere questo autoit che roba è.
Grazie ;)

LuVi
Top
  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 12:49 pm 
Schiavo
Avatar utente
Iscritto il: lun lug 19, 2010 6:08 pm
Messaggi: 7370
Località: Smileland (già Crucconia)
AutoIt è uno scripting language da paura, in poche righe fai di tutto.

Questo per esempio converte un file da bmp a jpg (è tra gli esempi):

Codice:
#include <GDIPlus.au3>

Opt("MustDeclareVars", 1)

; ===============================================================================================================================
; Description ...: Shows how to convert a BMP file to JPG
; Author ........: Paul Campbell (PaulIA)
; Notes .........:
; ===============================================================================================================================

; ===============================================================================================================================
; Global variables
; ===============================================================================================================================
Global $sImage, $hImage, $sCLSID

; Get BMP file to convert
$sImage = InputBox("BMP to JPG", "Enter File Name:", @MyDocumentsDir & "\Image.bmp", "", 200, 130)
if @Error or not FileExists($sImage) then Exit

; Initialize GDI+ library
_GDIPlus_StartUp()

; Load image
$hImage = _GDIPlus_ImageLoadFromFile($sImage)

; Get JPG encoder CLSID
$sCLSID = _GDIPlus_EncodersGetCLSID("JPG")

; Save image as JPG
_GDIPlus_ImageSaveToFileEx($hImage, @MyDocumentsDir & "\AutoItImage.jpg", $sCLSID)

; Shut down GDI+ library
_GDIPlus_ShutDown()
_________________
Se nel forum sono attivo vuol dire che al lavoro sto facendo documentazione.
Top
 Profilo E-mail Non connesso  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 1:02 pm 
Schiavo
Avatar utente
Iscritto il: lun lug 19, 2010 6:08 pm
Messaggi: 7370
Località: Smileland (già Crucconia)
Ah, btw, do per scontato che tuo padre usi Windows perché su Linux è complicatissimo:

Codice:
bash$: for img in *.jpg; do convert -size 800x600 $img thumb-$img; done


:asd:
_________________
Se nel forum sono attivo vuol dire che al lavoro sto facendo documentazione.
Top
 Profilo E-mail Non connesso  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 1:03 pm 
:pua:

Va beh, ma non è solo questione di resize... quello lo fa già con un click... è che vuole evitare di pagare un capitale ad ebay per caricare le foto, e vuole mettere più foto in una sola :D

LuVi
Top
  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 1:07 pm 
Schiavo
Avatar utente
Iscritto il: lun lug 19, 2010 6:08 pm
Messaggi: 7370
Località: Smileland (già Crucconia)
Ah ok, in effetti non avevo letto bene. Però ti consiglio ImageMagick che fa parecchio via command line (convert su Linux è parte di ImageMagick).

E son sicuro che riesca a fare anche quello che dici tu. Basta guardare la lista di parametri:

Cita:
-adjoin join images into a single multi-image file
-affine matrix affine transform matrix
-antialias remove pixel-aliasing
-authenticate value decrypt image with this password
-background color background color
-bias value add bias when convolving an image
-black-point-compensation
use black point compensation
-blue-primary point chromaticity blue primary point
-bordercolor color border color
-caption string assign a caption to an image
-channel type apply option to select image channels
-colors value preferred number of colors in the image
-colorspace type alternate image colorspace
-comment string annotate image with comment
-compose operator set image composite operator
-compress type type of pixel compression when writing the image
-define format:option
define one or more image format options
-delay value display the next image after pausing
-density geometry horizontal and vertical density of the image
-depth value image depth
-display server get image or font from this X server
-dispose method layer disposal method
-dither apply Floyd/Steinberg error diffusion to image
-encoding type text encoding type
-endian type endianness (MSB or LSB) of the image
-family name render text with this font family
-fill color color to use when filling a graphic primitive
-filter type use this filter when resizing an image
-font name render text with this font
-format "string" output formatted image characteristics
-fuzz distance colors within this distance are considered equal
-gravity type horizontal and vertical text placement
-green-primary point chromaticity green primary point
-intent type type of rendering intent when managing the image
color
-interlace type type of image interlacing scheme
-interpolate method pixel color interpolation method
-label string assign a label to an image
-limit type value pixel cache resource limit
-loop iterations add Netscape loop extension to your GIF
animation
-mask filename associate a mask with the image
-matte store matte channel if the image has one
-mattecolor color frame color
-monitor monitor progress
-orient type image orientation
-origin geometry image origin
-page geometry size and location of an image canvas (setting)
-ping efficiently determine image attributes
-pointsize value font point size
-preview type image preview type
-quality value JPEG/MIFF/PNG compression level
-quiet suppress all warning messages
-red-primary point chromaticity red primary point
-regard-warnings pay attention to warning messages
-sampling-factor geometry
horizontal and vertical sampling factor
-scene value image scene number
-seed value seed a new sequence of pseudo-random numbers
-size geometry width and height of image
-stretch type render text with this font stretch
-stroke color graphic primitive stroke color
-strokewidth value graphic primitive stroke width
-style type render text with this font style
-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
-texture filename name of texture to tile onto the image back?
ground
-tile-offset geometry
tile offset
-treedepth value color tree depth
-transparent-color color
transparent color
-undercolor color annotation bounding box color
-units type the units of image resolution
-verbose print detailed information about the image
-view FlashPix viewing transforms
-virtual-pixel method
virtual pixel access method
-weight type render text with this font weight
-white-point point chromaticity white point

Image Operators:
-adaptive-blur geometry
adaptively blur pixels; decrease effect near
edges
-adaptive-resize geometry
adaptively resize image with data dependent tri?
angulation
-adaptive-sharpen geometry
adaptively sharpen pixels; increase effect near
edges
-annotate geometry text
annotate the image with text
-auto-orient automatically orient image
-black-threshold value
force all pixels below the threshold into black
-blur geometry reduce image noise and reduce detail levels
-border geometry surround image with a border of color
-charcoal radius simulate a charcoal drawing
-chop geometry remove pixels from the image interior
-clip clip along the first path from the 8BIM profile
-clip-mask filename associate a clip mask with the image
-clip-path id clip along a named path from the 8BIM profile
-colorize value colorize the image with the fill color
-contrast enhance or reduce the image contrast
-contrast-stretch geometry
improve contrast by ‘stretching’ the intensity
range
-convolve coefficients
apply a convolution kernel to the image
-cycle amount cycle the image colormap
-despeckle reduce the speckles within an image
-draw string annotate the image with a graphic primitive
-edge radius apply a filter to detect edges in the image
-emboss radius emboss an image
-enhance apply a digital filter to enhance a noisy image
-equalize perform histogram equalization to an image
-evaluate operator value
evaluate an arithmetic, relational, or logical
expression
-extent geometry set the image size
-extract geometry extract area from image
-flip flip image vertically
-floodfill geometry color
floodfill the image with color
-flop flop image horizontally
-frame geometry surround image with an ornamental border
-gamma value level of gamma correction
-gaussian-blur geometry
reduce image noise and reduce detail levels
-geometry geometry perferred size or location of the image
-identify identify the format and characteristics of the
image
-implode amount implode image pixels about the center
-lat geometry local adaptive thresholding
-layers method optimize or compare image layers
-level value adjust the level of image contrast
-linear-stretch geometry
improve contrast by ‘stretching with saturation’
the intensity range
-median radius apply a median filter to the image
-modulate value vary the brightness, saturation, and hue
-monochrome transform image to black and white
-motion-blur geometry
simulate motion blur
-negate replace every pixel with its complementary color
-noise radius add or reduce noise in an image
-normalize transform image to span the full range of colors
-opaque color change this color to the fill color
-ordered-dither NxN
add a noise pattern to the image with specific
amplitudes
-paint radius simulate an oil painting
-polaroid angle simulate a Polaroid picture
-posterize levels reduce the image to a limited number of color
levels
-print string interpret string and print to console
-profile filename add, delete, or apply an image profile
-quantize colorspace reduce colors in this colorspace
-radial-blur angle radial blur the image
-raise value lighten/darken image edges to create a 3-D
effect
-random-threshold low,high
random threshold the image
-recolor matrix translate, scale, shear, or rotate image colors
-region geometry apply options to a portion of the image
-render render vector graphics
-repage geometry size and location of an image canvas
-resample geometry change the resolution of an image
-resize geometry resize the image
-roll geometry roll an image vertically or horizontally
-rotate degrees apply Paeth rotation to the image
-sample geometry scale image with pixel sampling
-scale geometry scale the image
-segment values segment an image
-sepia-tone threshold
simulate a sepia-toned photo
-set property value set an image property
-shade degrees shade the image using a distant light source
-shadow geometry simulate an image shadow
-sharpen geometry sharpen the image
-shave geometry shave pixels from the image edges
-shear geometry slide one edge of the image along the X or Y
axis
-sigmoidal-contrast geometry
lightness rescaling using sigmoidal contrast
enhancement
-sketch geometry simulate a pencil sketch
-solarize threshold negate all pixels above the threshold level
-splice geometry splice the background color into the image
-spread amount displace image pixels by a random amount
-strip strip image of all profiles and comments
-swirl degrees swirl image pixels about the center
-threshold value threshold the image
-thumbnail geometry create a thumbnail of the image
-tile filename tile image when filling a graphic primitive
-tint value tint the image with the fill color
-transform affine transform image
-transparent color make this color transparent within the image
-transpose flip image vertically and rotate 90 degrees
-transverse flop image horizontally and rotate 270 degrees
-trim trim image edges
-type type image type
-unique-colors discard all but one of any pixel color
-unsharp geometry sharpen the image
-vignette geometry soften the edges of the image in vignette style
-wave geometry alter an image along a sine wave
-white-threshold value
force all pixels above the threshold into white

Image Sequence Operators:
-append append an image sequence
-average average an image sequence
-coalesce merge a sequence of images
-combine combine a sequence of images
-composite composite image
-crop geometry cut out a rectangular region of the image
-deconstruct break down an image sequence into constituent
parts
-flatten flatten a sequence of images
-fx expression apply mathematical expression to an image chan?
nel(s)
-map filename transform image colors to match this set of col?
ors
-morph value morph an image sequence
-mosaic create a mosaic from an image sequence
-process arguments process the image with a custom image filter
-separate separate an image channel into a grayscale image
-write filename write images to this file

Image Stack Operators:
-clone index clone an image
-delete index delete the image from the image sequence
-insert index insert last image into the image sequence
-swap indexes swap two images in the image sequence

Miscellaneous Options:
-debug events display copious debugging information
-help print program options
-log format format of debugging information
-list type print a list of supported option arguments
-version print version information
_________________
Se nel forum sono attivo vuol dire che al lavoro sto facendo documentazione.
Top
 Profilo E-mail Non connesso  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 1:08 pm 
Schiavo
Avatar utente
Iscritto il: lun lug 19, 2010 6:08 pm
Messaggi: 7370
Località: Smileland (già Crucconia)
Ho copiincollato senza manco leggere :pua:

guarda il primo parametro:
Cita:
-adjoin join images into a single multi-image file
_________________
Se nel forum sono attivo vuol dire che al lavoro sto facendo documentazione.
Top
 Profilo E-mail Non connesso  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 1:23 pm 
Bello bello! Sembra perfetto! :D
Grazie!
Top
  
 
 Oggetto del messaggio: Re: Software per fare dei collage in automatico
MessaggioInviato: mar mar 29, 2011 1:30 pm 
Schiavo
Avatar utente
Iscritto il: lun lug 19, 2010 6:08 pm
Messaggi: 7370
Località: Smileland (già Crucconia)
LuVi ? ha scritto:
Bello bello! Sembra perfetto! :D
Grazie!

Di niente. Però ho appena visto che "convert -adjoin" serve per creare gif/tiff, non mix di foto.

Quindi per fare quello che dici tu si usa montage (sempre parte di ImageMagick).
http://www.imagemagick.org/script/montage.php

E comunque bello si, ho imparato qualcosa anche io :)
_________________
Se nel forum sono attivo vuol dire che al lavoro sto facendo documentazione.
Top
 Profilo E-mail Non connesso  
 
Visualizza ultimi messaggi:  Ordina per  
Apri un nuovo argomento Rispondi all’argomento  [ 13 messaggi ] 
-->

Tutti gli orari sono UTC +1 ora


Chi c’è in linea

Visitano il forum: Nessuno e 0 ospiti


Non puoi aprire nuovi argomenti
Non puoi rispondere negli argomenti
Non puoi modificare i tuoi messaggi
Non puoi cancellare i tuoi messaggi
Non puoi inviare allegati

Vai a:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Traduzione Italiana phpBB.it