Image quality

Permalink Browser Info Environment
Hey! Great add on! Love the functionality. Small problem though:

I'm using this addon for a client portfolio, and it seems as though the output of script is creating lower quality images than the originals. Both the original and the output are jpegs, so I am assuming something in the javascript is determining the final output quality.

Is there any way I can edit the code to output higher quality jpegs?

Type: Discussion
Status: New
shlomimir
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi,
Thanks for your positive feedback.

Yes, the block does automatically scale down very large images (using PHP to a max 750px width or height) before the Javascript resizes them. This is done for performance reasons so the page loads as quickly as possible. If the browser has to load dozens of large images (1MB+ each) that it would take a very long time to load the page. The resized image is then cached for performance reasons.

If you would like to manually adjust this, there are a couple options:
1) Change the PHP resized image. Edit lines 119, 120 and change the "750" to another size you wish to use.
2) Turn off the resizing altogether (not recommended if you have large images). If you wish to do this, in the view.php file change line 135, and replace this:

$imgt->src


with this:
$fv->getURL()


Hope this helps.

JB

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.