<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Forum posts to 'Site Builders'</title>
		<link>http://www.silverstripe.com/site-builders-forum/</link>
		

		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=136715</link>
			<description>Hi,&lt;br /&gt;&lt;br /&gt;I found it actually unnecessary that images are resampled even if I did not resize them in the WYSIWYG editor (which I usually never do). There is a 3-line-hack that forces Silverstripe to use the original image if it was not resized. See here: [url]http://silverstripe.com/site-builders-forum/flat/9740#post12044[/url]&lt;br /&gt;&lt;br /&gt;If you already created content with images you need to add the images again in the WYSIWYG to make these pages work.&lt;br /&gt;&lt;br /&gt;Cheers!&lt;br /&gt;Anatol&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Wed, 06 Aug 2008 13:48:00 +1200</pubDate>
			<author>Anatol Bogun</author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=136715</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128864</link>
			<description>lol I was going to say...&lt;br /&gt;&lt;br /&gt;That makes sense. No worries. Glad to see the setting is coming in the future though, as that'll help the upgrade process.&lt;br /&gt;&lt;br /&gt;Now if I can just find out why on this one website with 2.2.2, the image is being compressed, yet on the exact same server with 2.2.2rc3 it's not. It's driving me crazy...&lt;br /&gt;&lt;br /&gt;Oh well, thanks for the help. If anybody has any other suggestions, that would be great but I have a feeling I'm stuck.&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 12:13:35 +1200</pubDate>
			<author>Liam </author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128864</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128861</link>
			<description>sorry I am getting myself confused you cant call setQuality as its not static... set_default_quality() is not on 2.2.2 its on trunk sorry for confusing you! Theres no way to globally set it in 2.2.2. &lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 12:09:26 +1200</pubDate>
			<author>Will Rossiter</author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128861</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128858</link>
			<description>I'm using 2.2.2, latest version not trunk. Downloaded off website.&lt;br /&gt;&lt;br /&gt;In gd.php it has it as setQuality()&lt;br /&gt;&lt;br /&gt;I changed the line to GD::setQuality(90); in the config, but am given this error: &quot;Using $this when not in object context&quot;, when I try to load the page.&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 12:04:40 +1200</pubDate>
			<author>Liam </author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128858</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128847</link>
			<description>I dont think Ive typed it wrong? what version of SS you using?&lt;br /&gt;&lt;br /&gt;GD::set_default_quality() calls the function set_default_quality() in the GD class (GD.php) so if you open GD.php (its in sapphire/filesystem?) I think it was renamed from setQuality() to set_default_quality() so try setQuality()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 11:57:31 +1200</pubDate>
			<author>Will Rossiter</author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128847</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128845</link>
			<description>willr,&lt;br /&gt;&lt;br /&gt;Does setting the GD quality in the config file make it slower than setting it in the gd.php file? I'm assuming no, and you just mean the memory issue is caused by having higher quality image, just want to be positive.&lt;br /&gt;&lt;br /&gt;As for the resized image, as soon as I click the thumbnail image in tiny_mce preview, it maxes out the value at 600px. I can resize it to the proper dimensions before inserting it, and it loads fine in the content area, but this isn't very convenient for clients. Shouldn't be a problem for this site, but in general I'm curious.&lt;br /&gt;&lt;br /&gt;*Edit* Just put it in the config, and error was thrown saying called to undefined method. Is this even a setting or did you type it wrong?&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 11:45:42 +1200</pubDate>
			<author>Liam </author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128845</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128840</link>
			<description>Ok the plot thickens.&lt;br /&gt;&lt;br /&gt;I run my own server with multiple websites. I have an older client site running 2.2.2 rc3, and uploaded said image I'm testing into that site to test out. Uploaded through that website, it works perfectly and no major quality loss. Only some cause the setting is at 90, but it works as should. Odd.&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 11:35:54 +1200</pubDate>
			<author>Liam </author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128840</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128836</link>
			<description>It could be that when you inserted the image in the content area the image resized to 600px to fit the TinyMCE Window?&lt;br /&gt;&lt;br /&gt;What happens when you insert the image if you enter 642px in the width box? Does it still resize it&lt;br /&gt;&lt;br /&gt;Also as a note to stop SS reducing quality in images you can set the global quality in your mysite/_config.php file by adding this line&lt;br /&gt;&lt;br /&gt;[code]&lt;br /&gt;// Make all images nice and fancy&lt;br /&gt;GD::set_default_quality(100);&lt;br /&gt;[/code]&lt;br /&gt;&lt;br /&gt;By default its about 75 I think so this will increase load times and CPU work that needs to be done therefore it will use more PHP Memory as well so if you are on a slow shared host I wouldnt recommend it! but it will give you crisper images&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 11:33:03 +1200</pubDate>
			<author>Will Rossiter</author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128836</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128823</link>
			<description>Yup, just tried one now and another problem I found.&lt;br /&gt;&lt;br /&gt;I tried inserting the image I use in the header, so I could compare the two on screen. The image is 662px, and when I uploaded it and inserted it into the content area, it resized it to 600px. Nowhere in the template am I resizing the image, so is this normal?&lt;br /&gt;&lt;br /&gt;The originally image I tested wasn't resized, because it was a smaller image, but I'm curious as to why I'm losing 42px in ratio.&lt;br /&gt;&lt;br /&gt;I also tried deleting the images in the cache folder, and also flushing the image cache by /images/flush but there was nothing to update. Figured it was worth a shot.&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 11:09:54 +1200</pubDate>
			<author>Liam </author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128823</guid>
		</item>
		
		<item>
			<title>Re: Images Show Up Compressed</title>
			<link>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128819</link>
			<description>But have you uploaded a *new* image one that you have never uploaded before?&lt;br&gt;&lt;br&gt;Posted to: Images Show Up Compressed</description>
			<pubDate>Fri, 25 Jul 2008 10:49:53 +1200</pubDate>
			<author>Jack Pivac</author>
			<guid>http://www.silverstripe.com/site-builders-forum/show/46521?showPost=128819</guid>
		</item>
		

	</channel>
</rss>
