Home Forum
Welcome, Guest
Username Password: Remember me

manual setting of image size beyond 400 / no compression
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

TOPIC: manual setting of image size beyond 400 / no compression

manual setting of image size beyond 400 / no compression 4 years, 6 months ago #5781


  • Posts:4
  • bloosqr
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
Hi I'm really impressed with this codebase and (really the fact that it is hackable) Would it at all be possible to allow the user to pick the image sizes. This used to be a feature in older versons of RC4 but disappeared. That said, I managed to get this working by manually editting the settings.xml file.

The other problem is right now the recompression is very lossy .. I use photokit sharpener/photoshop to manually sharpen web based output and would like to leave the uploaded file intact. I've modified the upload.php file to do this. What would be genius would be to allow the user to upload in sets medium/large galleries where the user has generated the appropriate images (rather than allowing php to do the resizing/compression/saving).

Quite honestly, other than the security hole that led to a slew of breakins, this program is far better than lightroom, thanks again for your hard work in putting this together..

Re: manual setting of image size beyond 400 / no compression 4 years, 6 months ago #5824


  • Posts:4
  • bloosqr
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
Hi .. just to be clear here is my expose page with 800x800 (forced) images .. the forward/backward arrows overlay the picture but that is okay...


www.bloosqr.com/bloosqr/index.php?option...expose&Itemid=26

the thing is even setting the quality to "100" i cant get images of the quality theoriginal image fille like they look in my "hacked" version...

-all the best,
-avi

Re: manual setting of image size beyond 400 / no compression 4 years, 6 months ago #5825


  • Posts:641
  • admin
  • Administrator
  • OFFLINE
  • Karma: 0
The image compression was all handled by Ivan (creator of the core expose.swf files) from www.slooz.com. I cant even see what the expose.swf is doing because I dont have the FLA at all.

You should be able to adjust the height of the gallery if you try playing with the expose.html.php file and the config.xml. Most of this is in the documentation on joomlacode.org.

If you like it the way it is, it wont hurt anything,

Re: manual setting of image size beyond 400 / no compression 4 years, 6 months ago #5831


  • Posts:4
  • bloosqr
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
Thanks for the reply.. I think the compression is being done in com_expose/manager/upload.php


when I upload a file it gets moved and recompressed via that script
(as well as having the thumbnail generated). I have modied this around err line 190 or so by commenting out the imagejpeg command

and adding a copy command so it simply copies the original file

i.e.

// imagejpeg ($nimg, imgFolder () . $destfile, $settings["ImportQuality"]);
copy($_FILES['Filedata']["tmp_name"], imgFolder () . $destfile);

this removes the watermarking and copyrighting obviously but many of us do this in photoshop anyway and leaves for a much higher quality slideshow (albeit w/ larger files). If would be possible to add this as an option from the config manager that would be awesome..

setting the variable $settings["ImportQuality"] to 100 (highest value) helps but not really..

-best,
-avi

Re: manual setting of image size beyond 400 / no compression 4 years, 6 months ago #5833


  • Posts:2162
  • tokapi
  • Administrator
  • OFFLINE
  • Karma: 0
Problem: less compression is bigger files causing longer loads of the album... as this is one of the positive features of expose. If the option isn't hard to implement we could consider to do this.
Trial and error, but first a backup!

Re: manual setting of image size beyond 400 / no compression 4 years, 6 months ago #5834


  • Posts:4
  • bloosqr
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
I have found (and have asked around) that the timing is not onerous (even w/ 800x800 jpegquality=12 photoshop files), particularly as the next file seems to preload/cache and there is a delay time anyway between the loads in slideshow mode. It can even be a hidden option in the settings xml file so it is a 2 line modification (1) for the additional option and (2) an ifstatement wrapping that imagejpeg command..

If you guys put this in the next version that would be fantastic..

-best,
-avi
  • Page:
  • 1
  • 2
Time to create page: 2.89 seconds