<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Thumbnails</title>
		<link>https://www.cotonti.com</link>
		<description>Son konu mesajları</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Mon, 13 Apr 2026 06:25:34 -0000</pubDate>

		<item>
			<title>chobblr</title>
			<description><![CDATA[CSS is far easer to do it in..i could simply use a code like below<br />
<pre class="code">.div IMG {box-shadow: 2px 2px 5px #000;} but only a few browsers will see it</pre>
or i could try<br />
<pre class="code">.div IMG {padding-right:4px;padding-bottom:4px;background-image:URL('dropshadowimage.png')} all browsers will see</pre>
<br />
but..both have there pros and cons,  if i where to hard code it in it should be see able on all browsers and using no more images than before..]]></description>
			<pubDate>Sal, 19 Mayıs 2009 22:03:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12652]]></link>
		</item>
		<item>
			<title>Elgan</title>
			<description><![CDATA[that code isnt that brill.<br />
<br />
I did write some code , experimental to create hard coded rounded thumbs, it;s in medlib but it had a lil prob with some that got cought up int he transparency ont he edge<br />
<br />
<a href="http://www.cotonti.com/forums.php?m=posts&amp;p=10939&amp;highlight=ROUNDED#10939">http://www.cotonti.com/forums.php?m=posts&amp;p=10939&amp;highlight=ROUNDED#10939</a><br />
<br />
its not the best. <br />
<br />
i found a lil class that has uses gd and has a couple of thumbnail effetc,s rounding, shadows etc. without CSS.<br />
<br />
I might add it to medlib with options to add the effects to thumbnails.<br />
<br />
However it is always possible to do all of that with CSS. It's an arguement which is better for the same effect, hard coding and creating it, or css?]]></description>
			<pubDate>Sal, 19 Mayıs 2009 06:59:32 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12643]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[oh i see. i also found something..ironic aye (no not really) any how..would any of this work (look down NOW!!)<br />
<br />
<pre class="code">
$image_file = $_GET&#091;'src'&#093;;
$corner_radius = isset($_GET&#091;'radius'&#093;) ? $_GET&#091;'radius'&#093; : 20; // The default corner radius is set to 20px
$angle = isset($_GET&#091;'angle'&#093;) ? $_GET&#091;'angle'&#093; : 0; // The default angle is set to 0º
$topleft = (isset($_GET&#091;'topleft'&#093;) and $_GET&#091;'topleft'&#093; == &quot;no&quot;) ? false : true; // Top-left rounded corner is shown by default
$bottomleft = (isset($_GET&#091;'bottomleft'&#093;) and $_GET&#091;'bottomleft'&#093; == &quot;no&quot;) ? false : true; // Bottom-left rounded corner is shown by default
$bottomright = (isset($_GET&#091;'bottomright'&#093;) and $_GET&#091;'bottomright'&#093; == &quot;no&quot;) ? false : true; // Bottom-right rounded corner is shown by default
$topright = (isset($_GET&#091;'topright'&#093;) and $_GET&#091;'topright'&#093; == &quot;no&quot;) ? false : true; // Top-right rounded corner is shown by default

$images_dir = 'images/';
$corner_source = imagecreatefrompng('images/rounded_corner.png');

$corner_width = imagesx($corner_source);  
$corner_height = imagesy($corner_source);  
$corner_resized = ImageCreateTrueColor($corner_radius, $corner_radius);
ImageCopyResampled($corner_resized, $corner_source, 0, 0, 0, 0, $corner_radius, $corner_radius, $corner_width, $corner_height);

$corner_width = imagesx($corner_resized);  
$corner_height = imagesy($corner_resized);  
$image = imagecreatetruecolor($corner_width, $corner_height);  
$image = imagecreatefromjpeg($images_dir . $image_file); // replace filename with $_GET&#091;'src'&#093; 
$size = getimagesize($images_dir . $image_file); // replace filename with $_GET&#091;'src'&#093; 
$white = ImageColorAllocate($image,255,255,255);
$black = ImageColorAllocate($image,0,0,0);

// Top-left corner
if ($topleft == true) {
    $dest_x = 0;  
    $dest_y = 0;  
    imagecolortransparent($corner_resized, $black); 
    imagecopymerge($image, $corner_resized, $dest_x, $dest_y, 0, 0, $corner_width, $corner_height, 100);
} 

// Bottom-left corner
if ($bottomleft == true) {
    $dest_x = 0;  
    $dest_y = $size&#091;1&#093; - $corner_height; 
    $rotated = imagerotate($corner_resized, 90, 0);
    imagecolortransparent($rotated, $black); 
    imagecopymerge($image, $rotated, $dest_x, $dest_y, 0, 0, $corner_width, $corner_height, 100);  
}

// Bottom-right corner
if ($bottomright == true) {
    $dest_x = $size&#091;0&#093; - $corner_width;  
    $dest_y = $size&#091;1&#093; - $corner_height;  
    $rotated = imagerotate($corner_resized, 180, 0);
    imagecolortransparent($rotated, $black); 
    imagecopymerge($image, $rotated, $dest_x, $dest_y, 0, 0, $corner_width, $corner_height, 100);  
}

// Top-right corner
if ($topright == true) {
    $dest_x = $size&#091;0&#093; - $corner_width;  
    $dest_y = 0;  
    $rotated = imagerotate($corner_resized, 270, 0);
    imagecolortransparent($rotated, $black); 
    imagecopymerge($image, $rotated, $dest_x, $dest_y, 0, 0, $corner_width, $corner_height, 100);  
}

// Rotate image
$image = imagerotate($image, $angle, $white);

// Output final image
imagejpeg($image);

imagedestroy($image);  
imagedestroy($corner_source);
</pre>]]></description>
			<pubDate>Sal, 19 Mayıs 2009 04:11:33 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12638]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[No, I mean GD2 which is a much less limiting library. Here's a quickie I found online: <a href="http://documentation.coppermine-gallery.net/en/install_faq.htm#GD1vsGD2" rel="nofollow">http://documentation.coppermine-gallery.net/en/install_faq.htm#GD1vsGD2</a>]]></description>
			<pubDate>Sal, 19 Mayıs 2009 04:07:43 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12637]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[yeh i sort knew that pfft , i was off to google to figure out how to do it, because php is like me trying to fly without wings its difficult(hard) (and imposable)<br />
<br />
Edit: Dont you mean GD1]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:51:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12634]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[Hehe, I was actually referring to searching for the function in the cotonti file structure :)]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:47:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12633]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[Thanks, will go Google on how to do it and to a peak at functions.php thanks again *trundles off to <a href="http://google.com&quot;" rel="nofollow">http://google.com&quot;</a>]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:44:56 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12632]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[You could do a search... But no, it's in system/functions.php.]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:42:04 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12631]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[Are these files located in &quot;../core/pfs&quot;]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:30:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12630]]></link>
		</item>
		<item>
			<title>Lombi</title>
			<description><![CDATA[You'd need to hack the sed_createthumb function with additional GD2 functionality. As far as I know it supports both shadows and rounded corners. But you need to hack it.]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:24:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12629]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[yeh taken 5 mins ago]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:07:12 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12628]]></link>
		</item>
		<item>
			<title>Joy</title>
			<description><![CDATA[From where is that pic?..is that ur Website]]></description>
			<pubDate>Sal, 19 Mayıs 2009 03:01:51 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12626]]></link>
		</item>
		<item>
			<title>chobblr</title>
			<description><![CDATA[How can i edit the thumbnail look (other than color) <br />
<br />
what i want to do is just change some things like rounded corners and drop shadows, i no this can be done in css but is there a way to hard code it in stead,<br />
<br />
<div style="text-align:center"><a href="https://www.cotonti.com/datas/users/screenshot-13_389.png"><img src="https://www.cotonti.com/datas/users/screenshot-13_389.png" alt="" class="scale" /></a></div>
<br />
where you see the grey/black backgrounds with the rounded corners that is done by CSS but i would like that on the thumbnails, is this possible]]></description>
			<pubDate>Sal, 19 Mayıs 2009 02:59:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/tr/forums?m=posts&q=2768&d=0#post12625]]></link>
		</item>
	</channel>
</rss>