<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Add a page and then crop image</title>
		<link>https://www.cotonti.com</link>
		<description>Последние сообщения в теме</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Tue, 28 Apr 2026 16:42:42 -0000</pubDate>

		<item>
			<title>Harker</title>
			<description><![CDATA[<p>With the ideas that you have given me, I finally found this : http://permadi.com/blog/2010/10/html5-saving-canvas-image-data-using-php-and-ajax/</p>

<p>I will try to adapt the script</p>
]]></description>
			<pubDate>сб, 13 сен 2014 21:16:34 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39924]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>As I see, there are 3 way to solve a problem^</p>

<ol><li>Use raw «<strong>base64 PNG</strong>» image data — for that use common input field type `text`. Than decode it on serverside and save as normal <strong>PNG</strong> file.</li>
	<li>Made JS code for follows: convert `<strong>PNG</strong> data:image` → canvas → common `img` tag with desired format (<strong>PNG/JPG/GIF</strong>) → «<span style="line-height:22.3999996185303px;">data:image with <strong>certain </strong>format». Save it to server as noted in p.1</span></li>
	<li>[not sure for that] Get binary data from base64 and try to send it via AJAX emulating common POST form file uploading (`<span style="color:rgb(0,0,255);font-family:Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;line-height:15.3999996185303px;">multipart/form-data</span>`)</li>
</ol><p><span style="line-height:22.3999996185303px;">Note: you can not use code to attach any data via input type `file` directly.</span></p>
]]></description>
			<pubDate>сб, 13 сен 2014 17:26:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39922]]></link>
		</item>
		<item>
			<title>Harker</title>
			<description><![CDATA[<p>Thank you so much for the link</p>

<p>With the links, I understand how to save the image created with a button "save-as"</p>

<p>The little thing i'm trying to make is that the data : " data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA............" be added to the input of PageAvatar</p>

<p>Now, I have this =&gt; &lt;input type="file" name="pageavatar" id="image_souce" value="" class="file" size="56" /&gt;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA....&lt;/input&gt;</p>

<p>but it does not read as a file and it does not work obviously</p>

<p>I tried to change PageAvatar to change the data in the image format and then be read by the plugin but I can not do</p>

<p>In any case, thank you for your help, it's much appreciated</p>

<p> </p>

<p> </p>
]]></description>
			<pubDate>сб, 13 сен 2014 13:16:01 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39918]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>Check this links:</p>

<p><a href="https://github.com/hongru/canvas2image" rel="nofollow">https://github.com/hongru/canvas2image</a><br /><a href="http://stackoverflow.com/questions/4356489/datauri-image-to-canvas" rel="nofollow" style="font-size:13px;line-height:1.6em;">http://stackoverflow.com/questions/4356489/datauri-image-to-canvas</a></p>
]]></description>
			<pubDate>пт, 12 сен 2014 21:57:19 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39914]]></link>
		</item>
		<item>
			<title>Harker</title>
			<description><![CDATA[<p>Yes, I understand what you mean but to be honest, i do not like this method with ajax. It creates a tempory files on the website and if the user stop the action, the file does not disappear (with my tests). It would create a cron file to remove the images in the temps folder etc... I find this really paintfull method ^^</p>

<p>I found it easier to ask the user to change the thumbnail if he wanted but only after sending the file and the creation of the first thumb.</p>

<p><strong>Added 2 days later:</strong></p>

<p>Yop,</p>

<p>After some research, I found a script that launches the client-side script.</p>

<p>Here it is : http://marx-tseng.appspot.com/image_crop/index.html</p>

<p>Now I find myself with a new problem, I can upload the big picture with &lt;input type="file".....</p>

<p>do you have a solution to upload the second image in an input format (gif,jpg,png) and not base64 ?</p>
]]></description>
			<pubDate>ср, 10 сен 2014 18:43:28 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39878]]></link>
		</item>
		<item>
			<title>esclkm</title>
			<description><![CDATA[<p><a href="http://www.cotonti.com/users/Harker" style="margin:0px;padding:0px;vertical-align:baseline;color:rgb(1,45,72);text-decoration:none;font-family:sans-serif;font-weight:bold;line-height:30px;background:rgb(238,238,238);">Harker</a> .</p>

<p>You need totally rewrite pageavatar: because ints make crop serverside,,. But you need ajax upload + crop and only than save it to server. </p>

<p>It's just another plugin )</p>
]]></description>
			<pubDate>ср, 10 сен 2014 18:09:40 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39877]]></link>
		</item>
		<item>
			<title>Harker</title>
			<description><![CDATA[<p>I use pageavatar Version=4</p>
]]></description>
			<pubDate>ср, 10 сен 2014 13:50:45 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39870]]></link>
		</item>
		<item>
			<title>Macik</title>
			<description><![CDATA[<p>What version of «pageavatar» do you use: 2, <a href="http://www.cotonti.com/extensions/files-media/pageavatar-siena">3</a> or <a href="http://littledev.ru/page.php?al=pageavatar4" rel="nofollow">4</a> ?</p>
<p><strong>Добавлено 3 минуты спустя:</strong></p><p>Or may be «<a href="http://littledev.ru/cotontifolio/page-multi-avatar.html" rel="nofollow">pageMavatar</a>»?</p>
]]></description>
			<pubDate>ср, 10 сен 2014 13:37:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39869]]></link>
		</item>
		<item>
			<title>Harker</title>
			<description><![CDATA[<p>Hello to all,</p>

<p>I come towards you to find a way of making. At present I use to pageavatar to allow the users to add an image. This extension works well but when I use the crop function it is not still very attractive</p>

<p>ex: http://hpics.li/f0eb7e2</p>

<p>what i'd like is that when the user adds a page it is redirected to the plugin to change the thumbnail generated by pageavatar. But i have no idea on how to do it because after adding a page, it is placed directly awaiting approval. does it go if i add the hooks page.add.last element in my plugin ?</p>

<p>Here is the plugin that i want to add : https://github.com/mkrmpotic/Simple-Image-Crop</p>
]]></description>
			<pubDate>ср, 10 сен 2014 10:05:18 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ru/forums?m=posts&q=7790&d=0#post39865]]></link>
		</item>
	</channel>
</rss>