[wp-hackers] Inserting image in original size in 2.0

Roy Schestowitz r at schestowitz.com
Sat Dec 17 18:21:53 GMT 2005


_____/ On Fri 16 Dec 2005 14:01:56 GMT, [Marcus Grellert] wrote : \_____

> Hi,
>
> currently it is not possible (2.0 RC2) to insert an uploaded image with
> its original
> dimensions in the editor with just WP itself.
>
> You need to look up the image dimensions in a seperate program and
> resize the image accordingly.
>
> You can't do that if you don't have the image <- different users
> You don't want to do that <- well, it is possible in 1.5, why not 2.0;
> lots of images; ...
>
>
> Is this going to change for the initial release?
>
>
> marcus

When  you  upload an image, it gets put under <install_dir> /  wp-content/
uploads  / year / month . The image on the server remains identical, so no
resizing   or  pre-processing  is  involved.  A  thumbnail  is   generated
on-the-fly,  perhaps  using  PHP or ImageMagick. Set your  editor  to  use
quicktags  under  Users  at the very bottom (untick the box).  Then,  when
dragging  an image thumbnail onto the writing area, only its full URL will
be  copied. If you want to then make quick use of that URL, consider  bits
like:

<p align="center">
<img src="[domain]/[path]/wp-content/uploads/year/month/example.jpg"
alt="example" title="example" />
</p>

 From  my  point-of-view, the process has been simplified  tremendously.  I
wonder  if  making this addition of code in the quicktags case would  have
merit in terms of productivity.

In  1.5 there was no rich text editor, so one could argue that 2.0 is  not
missing anything, as far as image handling is concerned.

Best wishes,

Roy



More information about the wp-hackers mailing list