Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 04:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[PHP] Thumbnail erstellen

Discussion on [PHP] Thumbnail erstellen within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
bLUM3's Avatar
 
elite*gold: 300
The Black Market: 119/2/0
Join Date: May 2011
Posts: 3,298
Received Thanks: 479
[PHP] Thumbnail erstellen

Moin,
nach langem hin und her will meine Thumbnail-Erstellung nicht arbeiten
Also zum Thema -> Ich lade ein Bild hoch welches unter /uploads abgelegt wird.
Aus diesem Bild soll ein Thumbnail erstellt werden um es am Ende in eine Datenbank zu speichern (Nicht das Bild aber der Pfad )
Hat wer Ahnung von dem ganzen? Werd mir in der Zwischenzeit noch andere Methoden anschauen.

Mfg,
bLÜMCHEN
bLUM3 is offline  
Old 08/03/2013, 22:53   #2
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
tolio is offline  
Old 08/03/2013, 22:57   #3
 
bLUM3's Avatar
 
elite*gold: 300
The Black Market: 119/2/0
Join Date: May 2011
Posts: 3,298
Received Thanks: 479
Habe ich bereits ausprobiert, jedoch erfolglos :L
bLUM3 is offline  
Old 08/03/2013, 23:03   #4
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
den code nutze ich auch der funktioniert
musste halt vorher die bilder einheitlich convertieren und es dann anwenden
zb so
Code:
					switch ($img_info[2]) {
					  case IMAGETYPE_GIF  : $src = imagecreatefromgif($file['tmp_name']);  break;
					  case IMAGETYPE_JPEG : $src = imagecreatefromjpeg($file['tmp_name']); break;
					  case IMAGETYPE_PNG  : $src = imagecreatefrompng($file['tmp_name']);  break;
}
tolio is offline  
Old 08/03/2013, 23:13   #5
 
bLUM3's Avatar
 
elite*gold: 300
The Black Market: 119/2/0
Join Date: May 2011
Posts: 3,298
Received Thanks: 479
PHP Code:
$img_info $_FILES['file']['type']; 
Sollte dann so aussehen?
bLUM3 is offline  
Old 08/03/2013, 23:28   #6
 
tolio's Avatar
 
elite*gold: 2932
The Black Market: 169/1/0
Join Date: Oct 2009
Posts: 6,966
Received Thanks: 1,097
$img_info = @getimagesize($file['tmp_name']);

und mit dem ergebnis aus der funktion von oben dann noch das hier machen:

$ret = imagejpeg($img_result, $path);
tolio is offline  
Old 08/03/2013, 23:54   #7

 
xxfabbelxx's Avatar
 
elite*gold: 900
Join Date: Apr 2009
Posts: 14,981
Received Thanks: 11,403
Arrow General Coding -> Web Development

moved
xxfabbelxx is offline  
Old 08/04/2013, 16:45   #8
 
Mikesch01's Avatar
 
elite*gold: 203
Join Date: Sep 2007
Posts: 732
Received Thanks: 190
Wie schaut denn dein Code aus?
Mikesch01 is offline  
Reply


Similar Threads Similar Threads
Youtube Thumbnail
04/14/2013 - Artist Trading - 1 Replies
Moinsen... Wie der Titel schon sagt suche ich ein Youtube Thumbnail. Ich will hier eigentlich auch nicht mehr sagen, alles weiter wird per PN oder Skype geklärt. Brauche das Thumbnail bis spätestens heute Abend. Zusatz: Man sollte wirklich gut Zeichnen können, ansonsten wird das nicht funktionieren Skype: treffnix32
[S] Thumbnail Maker (GFX'ler) [B] e*g
03/08/2013 - elite*gold Trading - 1 Replies
Hallo, ich suche jemand der mir Thumbnail für Youtube macht! Skype: iceicepinguin1
Photopshop/Thumbnail
02/19/2013 - General Art - 5 Replies
Hallo Leute :) Ich habe mir letzten Phtoshop zugelegt um Thumbnails zu erstellen ! Jetzt habe ich mein erstes gemacht was ich auch gut finde :) Daraufhin wollte ich mal bei euch fragen:,, Kennt jemand gute Schriftarten für Photoshop und wie kann ich es in JPG bekommen um es auf Youtube hochzuladen ? Danke für eure Hilfe MfG xD4rki PS: Ich hoffe ich bin hier richtig, wenn nicht bitte bescheid geben :)
DDS Thumbnail Viewer
02/01/2013 - CO2 Weapon, Armor, Effects & Interface edits - 5 Replies
Hey everyone. I can't remember who was looking for this. Basically, this program will allow people running Windows 7 (32bit or 64bit) to view DDS files from their thumbnails. Whether or not this post finds it's way to that person, hopefully a few other people here will make use of it. Project Link: sagethumbs_2.0.0.12_setup.exe - sagethumbs - SageThumbs 2.0.0.12 32/64-bit - This is a Windows Explorer extension allowing to preview many image formats. - Google Project Hosting Sincerely,...
Youtube Thumbnail Erstellen ?
10/09/2011 - Off Topic - 2 Replies
Hallo Elite Ich habe eine Frage also ... Ich möchte gern aus ein Youtube Clip ein Bild (Thumbnail) machen. Gib es ein Programm, das es solche Bilder macht oder andres?



All times are GMT +1. The time now is 04:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.