Ticket #870 (closed New Feature: wontfix)

Opened 7 years ago

Last modified 3 years ago

Images resized by control points, less pixelated

Reported by: predecess@… Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF HasPatch Cc: arathael@…

Description

Here is a proposal that would solve pixelation problems from using a browser to resize images.

It sure would be slick if FCKeditor had an option to insert images in the form: /fckeditor/image_resizer.php? image=selected_image.jpg&w=300&h=123

This image_resizer.php script would use Imagemagick, GD, or another util to resize the image, store a cached copy of it on disk, and output the image.

Now FCKeditor could ran a check every 500ms or so to see if any images had changed dimensions from being dragged via control points, and if they did, then it would update their src URL, adjusting the width and height parameters appropriately.

Voila, no more pixelated images, and no having to explain to someone to resize via Photoshop.


Moved from SF:
http://sourceforge.net/tracker/index.php?func=detail&aid=1446677&group_id=75348&atid=543656

Attachments

mini.php (8.0 KB) - added by arathael 7 years ago.
This is a php script that takes 2 params, img: the source image to be resized, and tamano: the size you want it to be on the larger side of the picture. This is just a draft, i made it fast so don't expect too much. By the way, it uses Unsharp Mask in order to achieve the best render

Change History

comment:1 Changed 7 years ago by martinkou

  • Reporter changed from martinkou to predecess@…

Oh I forgot to say, it would be nice that the php GD engine detected if the image generated is a thumb , and if it is, to use UnsharpMask to render it better.


Moved from SF. Original poster: arathael

That would be nice, im actually doing it by replacing img url manually in the img properties dialog with my own php script.


Moved from SF. Original poster: arathael

Changed 7 years ago by arathael

This is a php script that takes 2 params, img: the source image to be resized, and tamano: the size you want it to be on the larger side of the picture. This is just a draft, i made it fast so don't expect too much. By the way, it uses Unsharp Mask in order to achieve the best render

comment:2 Changed 6 years ago by w.olchawa

  • Keywords HasPatch added

comment:3 Changed 3 years ago by wwalc

  • Status changed from new to closed
  • Resolution set to wontfix

It could be done as an external plugin for CKEditor, please feel free to do it and publish it here: http://cksource.com/forums/

We cannot add it to the editor core because the image manipulation tool is now distributed as an external application: CKFinder

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy