Hi Marcos, We’ve used the javax.imageio.ImageWriter to significantly reduce the size of jpeg images.
A 4.2MB image at 30% quality is 1/10 the size and the differences are only slightly noticeable from the original. Here is how it the sizes differ between 10-100% quality. img-10.jpg 200194 img-20.jpg 288217 img-30.jpg 375060 img-40.jpg 453826 img-50.jpg 542917 img-60.jpg 621533 img-70.jpg 819533 img-80.jpg 990477 img-90.jpg 1686143 img-100.jpg 4251385 -----Original Message----- From: Marcos Mendez [mailto:[email protected]] Sent: Thursday, September 12, 2013 1:21 PM To: [email protected] Subject: Re: newbie question regarding master db + file size On Sep 12, 2013, at 12:46, Emmanuel Lecharny <[email protected]> wrote: > Hi Marco, > > we have had long discussion about using an external storage (ie > separate files) for things like pictures. It's not really easy, and > I'm not sure it worth the effort. understood. thanks. > All in all, there is no advantage in compressing a picture : it > already uses a compressed format, the gain would be null. Using B64 > encoding would be even worth, the file size would be 33% bigger... agreed. images already have that. again being a newbie i don't know how it is actually stored. if its just the binary then it is fine. was more concerned about the other (if any) encodings. > On Thu, Sep 12, 2013 at 5:58 PM, Marcos Mendez <[email protected]> wrote: >> i would also suggest compressing those resources if hex or base 64 encoding >> is used to store them. you guys may do that already.... >> >> On Sep 12, 2013, at 11:08, Marcos Mendez <[email protected]> wrote: >> >>> ok. thank you. >>> >>> On Sep 12, 2013, at 11:06 AM, Kiran Ayyagari wrote: >>> >>>> no, there is no such support in the server (we have discusses about >>>> storing this kind of big blobs outside of the master db file but >>>> was not implemented) >>>> >>>> >>>> On Thu, Sep 12, 2013 at 8:30 PM, Marcos Mendez <[email protected]> wrote: >>>> >>>>> Hi, >>>>> >>>>> We're having an issue with the size of the master database file, >>>>> due to the fact that we're including pictures for people. We're >>>>> using a version control mechanism that has a maximum of 50mb and we've >>>>> already passed it. >>>>> >>>>> Is there any way we can put those entries outside of that file but >>>>> still be accessible as LDAP entries? We also don't want to have >>>>> them stored at a separate location (eg. providing a file/url path, >>>>> etc type solutions). The organization really wants them in the directory. >>>>> >>>>> Regards, >>>>> Marcos >>>>> >>>>> Installed version: apacheds-2.0.0-M14-64bit.bin >>>>> OS: Ubuntu 12.04.3 LTS >>>> >>>> >>>> -- >>>> Kiran Ayyagari >>>> http://keydap.com > > > > -- > Regards, > Cordialement, > Emmanuel Lécharny > www.iktek.com
