27-11-2010, 20:12
|
|
|
חבר מתאריך: 03.12.04
הודעות: 123
|
|
קראתי שם אבל כתוב שם:
"An improvement over the GD format, the GD2 format uses the zlib compression library to compress the image in chunks. This results in file sizes comparable to GIFs, with the ability to access parts of large images without having to read the entire image into memory. "
ומכאן שאמור להיות איזה קשר בין ה chunks שמוגדרים ל"חלקי התמונה" שמייבאים לאחר מכן.. או שלא?
ומה בכלל נותנת האפשרות של ה chunks אם אפשר פשוט להגדיר את התמונה כ:
קוד PHP:
imagegd2($im, 'some.gd2', 0, IMG_GD2_COMPRESSED);
ואח"כ לייבא חלק ממנה עם imagecreatefromgd2part() ?
בקיצור.. לא הבנתי מה ה chunks נותנים.
בקשר לפיקסלים/קילובייטים.. כתוב רק שהאפשרות מייצגת את גודל "חלק התמונה", אבל לא יותר מכך..:
"The file is stored as a series of compressed subimages, and the Chunk Size determines the sub-image size - a value of zero causes the GD library to use the default. "
עוד שאלה אחרונה:
ה fclose שיש בקישור שהבאת באמת נחוץ? כי ב php.net לא השתמשו בזה.
|