Opened 17 years ago

Closed 14 years ago

#870 closed New Feature (wontfix)

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 (1)

mini.php (8.0 KB) - added by Ramón Ramos 17 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

Download all attachments as: .zip

Change History (4)

comment:1 Changed 17 years ago by Martin Kou

Reporter: changed from Martin Kou 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 17 years ago by Ramón Ramos

Attachment: mini.php added

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 17 years ago by Wojciech Olchawa

Keywords: HasPatch added

comment:3 Changed 14 years ago by Wiktor Walc

Resolution: wontfix
Status: newclosed

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 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy