Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [php]modificare la grandezza delle immagini in upload??
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[php]modificare la grandezza delle immagini in upload??

vorrei sapere se posso salvare durante l'upload sul server le immagini in grandezze diverse, nel senso che vorrei salvare una versione originale nomeimmagine.jpg e automaticamente una versione del file nominata nomeimmagine_small.jpg con un formato fisso tipo 80x60 da usare come preview nella mia applicazione web.

è possibile?

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

01-06-2006 20:01
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gusher
Splinter fun club

User info:
Registered: Jan 2003
Posts: 475 (0.06 al dì)
Location: Ovunque
Corso: Informatica
Anno: Done
Time Online: 15 Days, 22:06:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [php]modificare la grandezza delle immagini in upload??

Originally posted by maynard80
vorrei sapere se posso salvare durante l'upload sul server le immagini in grandezze diverse, nel senso che vorrei salvare una versione originale nomeimmagine.jpg e automaticamente una versione del file nominata nomeimmagine_small.jpg con un formato fisso tipo 80x60 da usare come preview nella mia applicazione web.

è possibile?



Sì. Devi usare le GD Library (verifica se l'estensione è abilitata).
Tutte le info a riguardo qui.

01-06-2006 20:05
Click Here to See the Profile for Gusher Click Here to See the Blog of Gusher Click here to Send Gusher a Private Message Find more posts by Gusher Add Gusher to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

wow, e come faccio a sapere se il provider me l'ha attivata?

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

01-06-2006 20:09
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

carichi una pagina con la funzione phpinfo() e controlli che nella sezione GD ci sia scritto "GD Support enabled"

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

01-06-2006 20:52
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

gd
GD Support enabled
GD Version bundled (2.0.12 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

direi che è ok, no?



in locale invece uso easyPHP e li invece non c'è proprio questa funzionalità..

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

01-06-2006 21:54
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Devi attivare l'estensione GD (php_gd2) :)

__________________
?

01-06-2006 23:28
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sul mio host è attivo, ma come faccio ad attivarlo in locale sul mio pc? (io uso easyPHP)

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

02-06-2006 07:52
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
syx
Syphax inside

User info:
Registered: Oct 2003
Posts: 225 (0.03 al dì)
Location: Lago Maggiore (a mollo)
Corso: Informatica
Anno:
Time Online: 5 Days, 12:02:52 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

devi modificare il php.ini e togliere il ; prima di questa riga

code:
extension=php_gd2.dll


occhio che sono due in Easyphp: uno in /conf-files/ e l'altro sotto /php/
(soprattutto se lo usi da chiavetta perchè uno viene generato dall'altro)

la riga penso sia quella o cmq simile perchè ho messo php5 al posto del 4 (trovi come fare nella faq sul sito)

se hai altri dubbi chiedi pure!

02-06-2006 12:06
Click Here to See the Profile for syx Click here to Send syx a Private Message Find more posts by syx Add syx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
fulminato1
aLTeRaZioNeGuiTaRVoiCe

User info:
Registered: Oct 2003
Posts: 2809 (0.34 al dì)
Location: a casa.
Corso: comunicazio digital
Anno: secondo?
Time Online: 30 Days, 8:54:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by DeepBlue
carichi una pagina con la funzione phpinfo() e controlli che nella sezione GD ci sia scritto "GD Support enabled"


e se non ci fosse come faccio ad attivarlo??

__________________
www.alterazione.com www.andreaforzani.com
www.myspace.com/alterazione
www.myspace.com/festaincravilla

02-06-2006 12:39
Click Here to See the Profile for fulminato1 Click Here to See the Blog of fulminato1 Click here to Send fulminato1 a Private Message Visit fulminato1's homepage! Find more posts by fulminato1 Add fulminato1 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by fulminato1
e se non ci fosse come faccio ad attivarlo??

Devi chiedere al tuo provider: di solito sono accondiscendenti verso questo tipo di richieste (sempre che sia un ISP a pagamento).

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

02-06-2006 14:04
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
maynard80
.novellino.

User info:
Registered: Jul 2007
Posts: 3 (0.00 al dì)
Location: Milano (e non interland, tendo a precisare)
Corso: informatica
Anno: SESTO
Time Online: 12 Days, 14:28:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by syx
devi modificare il php.ini e togliere il ; prima di questa riga

code:
extension=php_gd2.dll


occhio che sono due in Easyphp: uno in /conf-files/ e l'altro sotto /php/
(soprattutto se lo usi da chiavetta perchè uno viene generato dall'altro)

la riga penso sia quella o cmq simile perchè ho messo php5 al posto del 4 (trovi come fare nella faq sul sito)

se hai altri dubbi chiedi pure!


ho tolto il commento ';'

ma ancora non basta pare

__________________
msn Messenger: giamma80 at tiscali.it
ATHENA !

02-06-2006 18:11
Click Here to See the Profile for maynard80 Click here to Send maynard80 a Private Message Find more posts by maynard80 Add maynard80 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quale dei due? Perchè quello sotto /php viene generato da quello in /conf_files.

__________________
?

02-06-2006 20:18
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dodo
lunatico

User info:
Registered: Jul 2002
Posts: 2340 (0.27 al dì)
Location: in una fibra ottica
Corso: Com Dig
Anno: 3+1 :P
Time Online: 42 Days, 7:55:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ragazzi e se le GD non ci sono (aruba con server windows :sbonk: ) è possibile in altro modo effettuare questa modifica delle immagini? magari php e javascript?

__________________
E' meglio essere ottimisti ed avere torto piuttosto che pessimisti ed avere ragione.

Albert Einstein

02-07-2006 12:31
Click Here to See the Profile for Dodo Click Here to See the Blog of Dodo Click here to Send Dodo a Private Message Find more posts by Dodo Add Dodo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Beh... potresti sempre manipolare manualmente i byte dell'immagine uploadata (magari una occhiata ai sorgenti di GD può esserti utile).

Js non saprei, di certo c'è che sarà un lavoraccio, visto che per ottenere risultati almeno almeno gradevoli ti toccherà implementare un qualche algoritmo di scaling.

La soluzione più ovvia sembrerebbe passare ad un hosting che le supporti, cmq sicuro che gli arubiani non possano far nulla? GD dovrebbe essere inclusa in PHP dalla 4.3, a sentire il manuale.

__________________
?

02-07-2006 20:14
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Gusher
Splinter fun club

User info:
Registered: Jan 2003
Posts: 475 (0.06 al dì)
Location: Ovunque
Corso: Informatica
Anno: Done
Time Online: 15 Days, 22:06:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Dodo
ragazzi e se le GD non ci sono (aruba con server windows :sbonk: ) è possibile in altro modo effettuare questa modifica delle immagini? magari php e javascript?


Verifica se abilitato ImageMagick piuttosto che NetPBM.

02-07-2006 20:29
Click Here to See the Profile for Gusher Click Here to See the Blog of Gusher Click here to Send Gusher a Private Message Find more posts by Gusher Add Gusher to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 05:04.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.094 seconds (69.52% PHP - 30.48% MySQL) con 23 query.