| | | | |
| |||||||
| PHP-Fortgeschrittene Arbeiten mit PHP ohne Einschränkungen |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| Erfahrener Benutzer Registriert seit: 08.08.2009
Beiträge: 195
PHP-Kenntnisse: Fortgeschritten ![]() | Hallo Community! Ja der Titel lässt vermuten dass mal wieder ein Noob zu faul zum lesen des Manuals ist und wissen will wie man ein Bild hochladen kann - Leider falsch! Ich habe einen Multifileupload zusammen mit SWFUpload realisiert was soweit auch ganz gut funktioniert. Aber eben leider nur ganz gut und nicht perfekt. Ich habe mit gewissen Fotos das Problem dass es nicht funktioniert, ich komm aber einfach nicht dahinter woran es liegen könnte. Die Dateigrösse für Fileuploads sind nicht das Problem, da ich andere Bilder mit 4MB hochladen kann und es funktioniert. Vielleicht hat jemand ja diese Erfahrungen auch schon gemacht, es handelt sich dabei um Fotos von einer Sony Cam. Ich habe mit einem Tool alle möglichen JPEG Informationen über die beiden Bilder ausgelesen. Hier mal die Infos zu einem JPEG das funktioniert: Code: Filename : Autosalon 13.03.2004 071.jpg
JFIF_APP1 : Exif
Main Information
Make : Canon
Model : Canon DIGITAL IXUS 400
Orientation : top
XResolution : 180/1
YResolution : 180/1
ResolutionUnit : Inch
DateTime : 2004:03:13 13:18:46
YCbCrPositioning : centered
ExifInfoOffset : 196
Sub Information
ExposureTime : 1/60Sec
FNumber : F4.5
ExifVersion : 0220
DateTimeOriginal : 2004:03:13 13:18:46
DateTimeDigitized : 2004:03:13 13:18:46
ComponentConfiguration : YCbCr
CompressedBitsPerPixel : 5/1 (bit/pixel)
ShutterSpeedValue : 1/60Sec
ApertureValue : F4.5
ExposureBiasValue : EV0.0
MaxApertureValue : F4.5
MeteringMode : CenterWeightedAverage
Flash : Fired(Auto)
FocalLength : 18.34(mm)
MakerNote : Canon Format : 590Bytes (Offset:942)
UserComment :
FlashPixVersion : 0100
ColorSpace : sRGB
ExifImageWidth : 2272
ExifImageHeight : 1704
ExifInteroperabilityOffset : 1556
FocalPlaneXResolution : 2272000/280
FocalPlaneYResolution : 1704000/210
FocalPlaneResolutionUnit : Meter
SensingMethod : OneChipColorArea sensor
FileSource : DSC
CustomRendered : Normal process
ExposureMode : Auto
WhiteBalance : Auto
DigitalZoomRatio : 2272/2272
SceneCaptureType : Standard
Vendor Original Information
MacroMode : Off
Self-timer : Off
Quality : Super-Fine
FlashMode : Auto
Drive Mode : Single-frame
Focus Mode : Single
ImageSize : Large
Easy shooting mode : Manual
Digital Zoom : Off
Contrast : Normal
Saturation : Normal
Sharpness : Normal
CCD Sensitivity : ISO100
MeteringMode : Center-weighted
FocusType : Auto
AF point selected : Unknown (16385)
ExposureProgram : Easy shooting
Focal length of lens : 7.40625-22.21875(mm)
Flash Activity : Fired
Long Shutter Mode : Off
Photo Effect : Off
Unknown (0001)3,46 : 005C 0002 0000 0005 0001 0000 0000 0004 0000 0001 0000 0001 0000 0000 0000 0000 0011 0005 0001 4001 0000 0000 FFFF 02C7 00ED 0020 008B 00DC 0001 2008 0000 0000 0000 0000 FFFF 0000 08E0 08E0 0000 0000 0000 0504 7FFF 0000 0000 0000
Unknown (0002)3,4 : 2,587,286,215
Unknown (0003)3,4 : 716,307,0,0
White Balance : Auto
Sequence number(Continuous mode) : 0
Flash bias : 0 EV
Unknown (0004)3,34 : 0044 0000 00A0 0040 008B 00BD 0000 0000 0000 0000 0005 0000 0000 0120 0000 0000 0000 0000 0001 0154 0000 008B 00C0 0000 0000 0000 00FA 0001 0000 0000 0000 0000 0000 01F4
Unknown (0000)3,6 : 0,0,0,0,0,0
Unknown (0000)3,4 : 0,0,0,0
Unknown (0012)3,28 : 9,9,2272,1704,2272,212,409,38,65126,0,410,65126,0,410,65126,0,410,65495,65495,65495,0,0,0,41,41,41,8,1
Unknown (0013)3,4 : 0,0,0,0
Image type : IMG:DIGITALIXUS400JPEG
Firmware version : FirmwareVersion2.00
Image Number : 1030333
Owner name :
Unknown (0010)4,1 : 19333120
Unknown (000D)3,34 : 68,9,186,189,181,180,182,171,173,172,168,68,0,0,65408,0,0,10,0,0,0,65475,94,20,0,1012,0,0,0,0,0,21,0,191
ExifR98
ExifR : R98
Version : 0100
Unknown (4097) : 2272
Unknown (4098) : 1704
Thumbnail Information
Compression : OLDJPEG
XResolution : 180/1
YResolution : 180/1
ResolutionUnit : Inch
JPEGInterchangeFormat : 2036
JPEGInterchangeFormatLength : 3275
Code: Filename : DSC06695.JPG
JFIF_APP1 : Exif
Main Information
ImageDescription :
Make : SONY
Model : DSC-W35
Orientation : left-hand side
XResolution : 72/1
YResolution : 72/1
ResolutionUnit : Inch
DateTime : 2009:06:05 13:10:22
YCbCrPositioning : co-sited
ExifInfoOffset : 256
PrintIM IFD : 28Bytes
Print Image Matching Info
Version : 0300
Unknown (0002) : 01 00 00 00
Unknown (0101) : 01 00 00 00
Sub Information
ExposureTime : 1/40Sec
FNumber : F2.8
ExposureProgram : Program Normal
ISOSpeedRatings : 160
ExifVersion : 0221
DateTimeOriginal : 2009:06:05 13:10:22
DateTimeDigitized : 2009:06:05 13:10:22
ComponentConfiguration : YCbCr
CompressedBitsPerPixel : 4/1 (bit/pixel)
ExposureBiasValue : EV0.0
MaxApertureValue : F2.8
MeteringMode : Division
LightSource : Unidentified
Flash : Not fired(Compulsory)
FocalLength : 6.30(mm)
MakerNote : SONY Format : 2036Bytes (Offset:722)
FlashPixVersion : 0100
ColorSpace : sRGB
ExifImageWidth : 3072
ExifImageHeight : 2304
ExifInteroperabilityOffset : 2746
FileSource : DSC
SceneType : A directly photographed image
CustomRendered : Normal process
ExposureMode : Auto
WhiteBalance : Auto
SceneCaptureType : Standard
Contrast : Normal
Saturation : Normal
Sharpness : Normal
Vendor Original Information
Unknown (2000)7,1 : Offset:732
Unknown (B020)2,9 : Standard
Unknown (B040)3,1 : 0
Unknown (B041)3,1 : 6
Unknown (B042)3,1 : 1
Unknown (B043)3,1 : 0
Unknown (B044)3,1 : 1
Unknown (B045)3,1 : 0
Unknown (B046)3,1 : 0
Unknown (B047)3,1 : 1
Unknown (B048)8,1 : 0
Unknown (B049)3,1 : 0
Unknown (B04A)3,1 : 0
Unknown (B04B)3,1 : 0
Unknown (B04C)5,1 : 10/10
Unknown (B04D)3,1 : 0
Unknown (B04E)3,1 : 0
Unknown (9001)7,148 : 081D70000008007F007500000027F90056E3000000CDFF00000000D300000000000000D300395166000000D80000D38BBEC000562B090EA0EAA00008FFFBFFF5009C305B88048AB0305B88048AB030700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Unknown (9002)7,200 : 4000000000B6008A8ACB0000003070088AFE8AFE8AFD8AFD003056A38A0C000000000000000070CA8A3A00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000069000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004C08E6007D00CD000000D8FF0000003A00A070C700008A40955D00000000
Unknown (9003)7,200 : 40DCDCBD00020083005A003C009200D3002B00020804010001B3010001000100010059ED0FF25396EEC2BDBDBDBD00009251EAD78150CDF08ABE8890058330CCFEFB00E1007445EB3E455BF5D88A1BBE61002900E0005300285DAF5CE84C104C105C2D04A627270301104CBC4CBC87DBE2A94CDB855DE038E0384C1001004C10C51501B6E70856711BC5EEDDC9015695CD2440F0DD2FBB7F611A00000000000000000000000000000000000000010008E70000000000BDBDBDBDBDBDBDBD0000000000DCDCBC5F10
Unknown (9004)7,128 : 08011B681B6B1B3F1B6B1B3F1B3F1B3F1B3F75000000000000000000000000000000000000000000000000000000000000000095003900AC007A0095003900AC007A0000001B6874001B6B22001B3F9F001B6B3A001B6874001B6B22001B3F9F001B6B3AFFFFFF8FFFFFFF28FFFFFF77FFFFFF5A000000000000006900000000
Unknown (9005)7,122 : 0801000100000000000800000000000000000000000000D800000000001B000000010001000800000000000100010000000000400040004000003B824E87235BEED0C46A300505200CB701610100000000FFFF00FF0000000000000000BA3B0000FFFF0000CD3E0C000000000000000000000000000000000000
Unknown (9006)7,252 : 010000000000876B0000F0E90000513E0000D7F300006C0500006CFF0000B1EF000082EC000018290000DCCD0000A0FA0000283B00002F78000002B200009A9F000049E70000BCCA0000EC9F000081DA0000957800006AC80000CC1C00005B0000004CD20000698C0000CD59000020300000BB390000EFFE00000C0C0000CDE700007DC9000040D10000042C000005FB0000044C00005E3100005E930000089D000040CC00007DC30000D8DA0000400D00001BEF0000D8E7000008C40000017C00001B7100001B9EC2C27FF6F6F67F7F7FF6EE38EEF6F6F6EED083D0EEF6F638834A8338F6F6EED083D0EE7F7FF6EE38EEF6C2C27FF6F6F67F000000
Unknown (9007)7,200 : 0800EA0CCD84052FCD95563AE75000A304FFEAECEA41560B04CF0E80000000000000000000000000000000000000000000000000000000000000000000000000000000005E2204DD56EAE7415E457D8500A35EBB0EF7E7CB5E34D8627D8A0000000000000000000000000000000000000000000000000000000000000000000000000000000069A888FF88FF88FF8895B68E00A38A3A8A0A70CD7038701E70CA00000000000000000000000000000000000000000000000000000000000000000000000000000000
Unknown (9008)7,200 : 4000000000623DD600A0B6100002989A00966F290000862D00B6B5AD000E96640004723D008A432900004BAE00B6B5AD000E96640004723D008A432900004BAE010008E70038000101016A9AC58239BD07D439F3C5C3C5936C9A2F1F5DDA39BF07F3C5DDC5CF51065CAF5D6D39BF077B4CBCC5B12F3A072D4C5FEF27C53187274CB151E46A9F875F87B102541A441ADDC58CFFFF1ADBFFFF4C83F0A92427078C04044C83FFFF049A07DDB72700000000000000000000000000000000000000000000000000000000
Unknown (A000)4,1 : -2147483645
Unknown (A001)1,1 : 40
Unknown (A002)1,1 : 19
Unknown (A100)7,0 : Offset:1068
Unknown (A101)7,0 : Offset:1080
Unknown (A200)7,0 : Offset:1092
Unknown (A300)7,32 : Offset:2606
Unknown (A301)7,28 : Offset:2638
Unknown (A400)7,80 : Offset:2666
ExifR98
ExifR : R98
Version : 0100
Thumbnail Information
Compression : OLDJPEG
Make : SONY
Model : DSC-W35
Orientation : left-hand side
XResolution : 72/1
YResolution : 72/1
ResolutionUnit : Inch
DateTime : 2009:06:05 13:10:22
JPEGInterchangeFormat : 2952
JPEGInterchangeFormatLength : 11845
http://www.netandweb.ch/DSC06696.JPG Da der Upload vom SWFUpload ausgeführt wird habe ich eben leider keine Fehlermeldung vom Server. Vielen Dank für eure Hilfe & Inputs Gruss da.eXecutoR |
| | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Moderator Registriert seit: 03.09.2004
Beiträge: 11.792
PHP-Kenntnisse: Fortgeschritten ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Da wird der Speicherverbrauch der GDlib erklärt: [Grundlagen] GDlib und große Bilder - Developer's Guide
__________________ robo47.net - Blog, Codeschnipsel und mehr | |
| | |
| | |||
| Neuer Benutzer Registriert seit: 06.08.2009
Beiträge: 28
PHP-Kenntnisse: Fortgeschritten ![]() | Zitat:
Zu dem Artikel: Der Autor stellt dort die These auf, dass das CMYK-Farbmodell (mit 32Bit pro Kanal) und ein 8-Bit Alphakanal verwendet wird, die GD-Lib "Vermutlich [...] so als Standard eingestellt" sei und demnach 40Bit Speicher pro Bildpunkt benötigt. Dem widerspreche ich. Die GD-Lib arbeitet mit dem RGB-Farbmodell + Alphakanal und benötigt demnach 4 Byte Speicher pro Pixel. Zum einen steht folgendes im CHANGELOG: Zitat:
Code: typedef struct gdImageStruct
{
...
/* Truecolor flag and pixels. New 2.0 fields appear here at the
end to minimize breakage of existing object code. */
int trueColor;
int **tpixels;
...
}
Code: BGD_DECLARE(gdImagePtr) gdImageCreateTrueColor (int sx, int sy)
{
int i;
gdImagePtr im;
...
im->tpixels = (int **) gdMalloc (sizeof (int *) * sy);
...
for (i = 0; (i < sy); i++)
{
im->tpixels[i] = (int *) gdCalloc (sx, sizeof (int));
...
Ich bleibe also bei meinen 24-32Bit plus Overhead. Nur beträgt der nicht 50% der Nutzdaten wie BlakkCooper meinte. | ||
| | |
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| chmod Problem, upload erfolgt nicht | fdm | PHP Tipps 2009 | 6 | 20.07.2009 20:35 |
| Problem beim Upload von Dateien per FTP | ererbus | PHP-Fortgeschrittene | 4 | 11.06.2009 22:56 |
| Upload Problem! | gabihh | PHP Tipps 2009 | 1 | 18.01.2009 18:52 |
| Foto upload Problem | waldsee | PHP Tipps 2009 | 2 | 13.01.2009 17:31 |
| [Erledigt] Problem bei Upload, gif Bild wird beim verkleinern schwarz | T-boy1994 | PHP Tipps 2008 | 7 | 26.11.2008 20:35 |
| Problem mit File Upload | b++ | PHP Tipps 2006 | 2 | 26.04.2006 20:35 |
| upload problem | LP | PHP Tipps 2006 | 10 | 08.02.2006 23:24 |
| [Erledigt] [PHP] Problem mit Script fuer Browserbasierten Upload | PHP-Fortgeschrittene | 5 | 26.12.2004 13:49 | |
| upload zum xten mal aber evt mal n anderes problem | mqs | PHP Tipps 2004-2 | 2 | 14.12.2004 20:29 |
| [Erledigt] PHP Upload (Master Value/Local Value Problem) | PHP-Fortgeschrittene | 5 | 23.11.2004 07:21 | |
| Problem mit File Upload | PHP Tipps 2004-2 | 2 | 19.11.2004 13:41 | |
| problem mit normalem ftp upload! | PHP Tipps 2004 | 4 | 30.07.2004 18:46 | |
| Upload problem -> unerklärliche fehlermeldung | PHP Tipps 2004 | 9 | 19.07.2004 10:43 | |
| [Erledigt] Php skript upload problem! | PHP Tipps 2004 | 2 | 30.06.2004 00:06 | |
| [Erledigt] altes neues problem von datei upload!!! | PHP Tipps 2004 | 3 | 28.06.2004 19:06 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| php image resize, php resize image, php picture resize, php resize, php image upload resize, php image upload and resize, image resize php, http://www.php.de/php-fortgeschrittene/57885-erledigt-php-image-upload-resize-problem.html, php image upload, php image upload & resize problem, php picture upload, resize image php, php upload resize image, php upload image resize, php image resize upload, php resize picture, resize pictures php, image upload resize, php image resizing, php upload jpeg compression exif |