 | |  | |
December 13th, 2004, 10:30 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Photo File Size - Before and After
I uploaded a 14 KB test photo 221 X 276 jpg at 72 d.p.i.
It merged with a 1 KB 108 X 14 jpg water mark at 72 d.p.i..
The result was a pixelated 142,562 byte image file at 480 X 600.
The Gallery page reported the file size as 36.17 KB.
Actually, the Linux directory listed it as 142K as did Windows Properties.
Am I doing something wrong or is this program for uploading photos that are LARGER than the specified size only? I have my Filetypes set to 800 X 600 and 100KB max.
Does this mean that all smaller images will be maxed out to the 800 X 600 size?
|
| |
December 13th, 2004, 10:34 PM
|
#2 (permalink)
| | Guest | Re: Photo File Size - Before and After
There was a problem in RC1 that could cause this. Should be fixed in RC2 though.
| |
| |
December 13th, 2004, 10:45 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Re: Photo File Size - Before and After
Thanks! I had tried another one that is 72KB on my desktop and it went to 280KB on the server. Take your time. Better to shake it down now.
Another comment: when the 100K limit was hit, the error message could easily be missed. Maybe a BIG RED font is needed. Of course my users are not computer folks, so I'll have to be watching out for them.
|
| |
December 18th, 2004, 08:41 PM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Re: Photo File Size - Before and After
I just updated to RC2 and installed all of the current bug updates.
An uploaded 40 KB image shows as Filesize: 39.66 KB on the showimage.php screen, but is really 167,878 byte in the linux file directory.
An uploaded 20KB image shows as Filesize: 19.64 KB on the showimage.php screen and is really 113,076 bytes in the linux file directory.
An uploaded 82KB image shows as Filesize: 62.09 KB on the show image.php screen, but is actually 239,034 byts in the file directory.
Internet Explorer Properties on the displayed image confirm the size shown in the server file directory.
At this rate, we will chew up file space pretty fast.
FOUND IT: It's the watermark, but the watermark is only a 1K image! The photos are .jpg as well as the watermark image.
What do we do about the inefficient file sizes while using a watermark?
|
| |
December 18th, 2004, 10:01 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Re: Photo File Size - Before and After
Perhaps the solution is to switch from GD to ImageMagick on the server?
Which one is being used for development here?
Edit:
I had ImageMagick installed, but no change resulted. When setting ImageMagick in the control panel, the thumbnail is a red X and the watermark does not get placed in the photo.
When set to GD the thumbnail is fine and the watermark works, but the image filesize gets way overgrown.
|
| |
December 19th, 2004, 10:13 AM
|
#6 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Re: Photo File Size - Before and After
OK, I've gotten this far:
rpm -qa|grep -i image
ImageMagick-perl-5.5.6-7
ImageMagick-5.5.6-7
"If you have chosen ImageMagick or NetPBM for your resize program, enter the path to the program here (leave this blank if you are using the GD library)."
Can anyone give me an assist on how to find the path needed?
|
| |
December 19th, 2004, 10:29 AM
|
#7 (permalink)
| | Registered User Verified Customer
Join Date: Nov 2005
Posts: 1,400
| Re: Photo File Size - Before and After Quote: |
Originally Posted by oldengine ...
"If you have chosen ImageMagick or NetPBM for your resize program, enter the path to the program here (leave this blank if you are using the GD library)."
Can anyone give me an assist on how to find the path needed? | Brian pointed me in the right direction when I was looking for the answer also. The "default" path is "/usr/bin/" and that is what works for me; of course your mileage may vary.  The big thing I learned is to make sure that the trailing slash is on there else the command doesn't execute properly.
|
| |
December 19th, 2004, 10:32 AM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Re: Photo File Size - Before and After
Thanks!
I found the /usr/bin/ but I've still got something wrong.
No thumbnails and no watermark.
I was hoping that Imagemagick was going to be superior to GD.
|
| |
December 19th, 2004, 10:36 AM
|
#9 (permalink)
| | Guest | Re: Photo File Size - Before and After
Would you mind submitting a support ticket so I can have a look and see what the problem is with the image sizes and IM?
| |
| |
December 19th, 2004, 10:39 AM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Re: Photo File Size - Before and After
Will do.
EDIT: GD is now working fine on watermark file sizes.
|
| |
January 21st, 2005, 06:52 AM
|
#11 (permalink)
| | Member Verified Customer
Join Date: Oct 2004
Posts: 151
| Re: Photo File Size - Before and After
yeah oldengine, HOW?
please post your fix to a problem once you find it 
for now i'm submitting a support ticket to fix the same problem ASAP.
|
| |
January 21st, 2005, 08:51 AM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Oct 2004 Location: Florida
Posts: 318
| Re: Photo File Size - Before and After
Brian "fixed" it as part of my ticket access. I don't know what he did to do so.
|
| |
January 21st, 2005, 09:40 AM
|
#13 (permalink)
| | Ultimate Member Verified Customer
Join Date: May 2004 Location: Tempe, Arizona
Posts: 2,240
| Re: Photo File Size - Before and After
My path to IM is /usr/X11R6/bin (as per my host) but when I use that it fails. If I change to GD it works. Does it matter or are they faily the same quality?
|
| |
January 21st, 2005, 10:02 AM
|
#14 (permalink)
| | Guest | Re: Photo File Size - Before and After
Try /usr/X11R6/bin /
For anyone else having an issue with the file sizes, open your forum/includes/functions_gallery_imageedit.php file and look for this code: Code: Content visible to verified customers only.
Replace with this: Code: Content visible to verified customers only.
Then look for: Code: Content visible to verified customers only.
And replace with: Code: Content visible to verified customers only.
| |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting 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 | | | All times are GMT -5. The time now is 11:35 PM. | |