Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#241 2006-07-26 19:42:57

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: Improving TXP Image Management

Just as a small screenshot for those who don’t follow the changes in SVN. That’s the way the image tab looks right now:

Concerning the the image management in general, there are some things that should find its way into the core and some that a are easier to be maintained as plugins:

1. For the core:

  • an enhanced image tag similar to article custom (see here)

2. As plugins:

Concerning the plugins I think we should wait until we know the final functional range of the upcoming TXP 4.0.4.
Concerning the core features we need somebody with the time and skills to do the programming of a patch.

Anybody?

Offline

#242 2006-07-26 22:36:01

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Improving TXP Image Management

The image tag is just as easy (if not easier) to do as a plugin as either of the admin interface changes. upm_image is 90% there already.


Shoving is the answer – pusher robot

Offline

#243 2006-07-26 23:14:39

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: Improving TXP Image Management

We’re really just turning in circles. Advanced image searching has already been suggested (we even spoke of a livesearch-feature – the recent addition of JQuery to crockery by zem makes it even more tempting). We’ve already discussed the pros and cons of upm_image, etc.

I’ve got bucket loads of work at the moment, otherwise I’d have loved to make a writeup of how I imagine the perfect scenario. With loads of savy mock-ups of course. Anyway, perhaps someone could start by making a really complete summary of the whole thread in the wiki, so we stop the time-wasting?

I also think we should start considering two different kinds of use of images (as well as files actually) : those that you insert amongs your article (in the body or the excerpt) and those that are generated automatically (with article images for instance). I also wonder why there are no article files actually.

Offline

#244 2006-07-27 00:27:23

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Improving TXP Image Management

guiguibonbon wrote:

…Anyway, perhaps someone could start by making a really complete summary of the whole thread in the wiki, so we stop the time-wasting?

ggbb,
this is a great motivational tactic. Thanks for really encouraging all the people who have wasted their time working through this stuff. How about you and your busy schedule write up a summary of the wiki?

These things are not easily accomplished. If you are discouraged, either pump some real money into a project for the dev team or others to get it done, or CONSTRUCTIVELY add to the write up, or if you are as busy as you claim to be, cheer from the sidelines.

Thanks.

Matthew


Offline

#245 2006-07-27 01:24:57

guiguibonbon
Member
Registered: 2006-02-20
Posts: 296

Re: Improving TXP Image Management

Oh, sorry, didn’t want it to sound this rude. I mean, it’s in everybody’s advantage to avoid that kind of situation. As I said, I’d love to help much more, really just don’t have the needed time. I could start summarizing, but I don’t have a wiki account. Gonna check how that works. Maybe group work would be more effective?

Sorry again if I got misunderstood.

Offline

#246 2006-07-27 02:05:40

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Improving TXP Image Management

ggbb,
thanks. Hak or Destry, can you send him an account? Thanks man.

ggbb, let me know if you have any questions k?

:)

M


Offline

#247 2006-07-27 02:45:36

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: Improving TXP Image Management

ggbb, shot me an email and I’ll set you up with an account, I just need your email address so that textbook can email you the password.

Just use the forum email thingy.


Shoving is the answer – pusher robot

Offline

#248 2006-07-27 05:55:23

Skubidu
Archived Plugin Author
Registered: 2004-10-23
Posts: 611
Website

Re: Improving TXP Image Management

The image tag is just as easy (if not easier) to do as a plugin as either of the admin interface changes. upm_image is 90% there already.

I’m not saying that it’s not easy to do as a plugin: it’s not about that at all. I’m just thinking that it would be good to have such a bulked tag as a core feature. In my opinion, all the things that are fundamental for the output and the data structure should be in the core (that’s the image tag and things that need some modifications to the database – like more than one category). Otherwise we don’t need to talk and somebody just starts coding the super-all-in-one-i-love-you-all-image-plugin.

If you have admin side plugins that help managing the image stuff, your site will still work if one of these plugins is broken. If you have a full image tag as plugin and the things are not fully compatible with new versions etc. your site will probably break.

It all will be easier when crockery will be released as version 4.1 because you are more flexible and independent.

Offline

#249 2006-07-27 08:11:06

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Improving TXP Image Management

@Skubidu – thx mate for posting the screenshot and keeping us informed.

@ggbb
I did already start a summing up on Textbook a while ago:
Improved_Image_Handling on Textbook

i did announce this (see page 8 of this thread). I cicle around for YOU now !

(what i like most is, people asking others to do comprehensive work while saying they are just too busy to do it. What do you think other people are doing all day long?)

Offline

#250 2006-07-27 16:31:56

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Re: Improving TXP Image Management

wet wrote:

Probably useful bits’n‘pieces: 1, 2.

I don’t know where to add something like this, but in my own hacking of TXP image management I made two changes that have been super useful. Firstly, duplicating the thumbnail creation for simple but intuitive image resizing (the only alternative, glx_admin_image, while having other useful options like rotation, lacks the most important one which is dim for height and width). The second really useful mod – which doesn’t seem to have shown up in subversion yet – is instead of returning an error if a value hasn’t been entered for both height and width, calculates the missing value in order to resize/create the image in proportion. I guess the only other useful thing left that I haven’t gotten around to adding would be a crop or trim from edge kind of functionality.

Anyway, the modified files are here (warning: I am not a trained coding professional) – they can be used as drop-in replacements for the current versions (though their might be problems if additional admin image plugin’s are being used). I hope they might be useful..

  1. include/txp_image.php
  2. lib/class.thumb.php

Kudos to WET for the brilliant wet_thumb!


Travel Atlas * Org | Start Somewhere

Offline

#251 2006-07-27 23:03:48

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Improving TXP Image Management

…instead of returning an error if a value hasn’t been entered for both height and width, calculates the missing value in order to resize/create the image in proportion. I guess the only other useful thing left that I haven’t gotten around to adding would be a crop or trim from edge kind of functionality.

Both already happen, in the stable version available. ?

Offline

#252 2006-07-27 23:56:17

rloaderro
Archived Plugin Author
From: Costa Rica
Registered: 2006-01-05
Posts: 190
Website

Re: Improving TXP Image Management

Mary wrote:

bq. …instead of returning an error if a value hasn’t been entered for both height and width, calculates the missing value in order to resize/create the image in proportion. I guess the only other useful thing left that I haven’t gotten around to adding would be a crop or trim from edge kind of functionality.

Both already happen, in the stable version available. ?

Yes, you are correct re: the missing value. Looking at the code again I realize that when I wrote in the image resize I change the validation from AND to OR – got the error and wrote in the additional code without realizing what I had done. But by trim from edge I mean a simple input that would take a value n that would cut n number of pixels from each edge of the image. I know TXP can crop images – which is incredibly useful – but this extra functionality (+ the resize) would really make TXP 90% self-sufficient from requiring an external image editor for basic insertion of images in the content.

Last edited by rloaderro (2006-07-27 23:57:21)


Travel Atlas * Org | Start Somewhere

Offline

Board footer

Powered by FluxBB