Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2006-02-16 05:03:05

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

eh, sorry, that would explain why i didnt understand anything. what rhd said is right. you can safe the default in the cookie or you change the 100 into something of your convenience. is it a value that should be configurable? i could put it to the constants in the beginning of the script.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#32 2006-02-16 05:21:48

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

Re: [plugin] [ORPHAN] glx_admin_image_resize

Patrick,
Yeah, I would make it a bit more configurable.
I’ve found it slightly awkward to get it to stick.

Thx,

Matthew


Offline

#33 2006-02-17 05:54:16

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

the following applies to an experimental version of glx_admin_image_resize in the cellar.

as it is an admin-side-plugin there are no possibilities to configure the plugin via attributes, so there is now a section at the beginning of the code with constants to define the default behaviour. the cookie will overwrite the setting, so you should delete the cookies if the “old” value occurs.

i implemented the defaultsizes and the defaultqualities of “big pictures” and thumbnails. it is not yet deeply tested. what else should be configurable?

there is a slight possibility that the names of the constants are changed until the release of this version, the documentation will be updated accordingly.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#34 2006-03-03 16:55:02

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

I can’t get it to work, on any installation. On one installation only thumbnail resize work, and on large image resize I get an internal server error.

On another installation simply the resize has no effect. Gd library installed.

Is there any setting should I consider? Traditional txp resizing is working fine, I’d like to resize fullsize image.

Thanks!

Z-

Offline

#35 2006-03-03 20:52:00

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

Re: [plugin] [ORPHAN] glx_admin_image_resize

Patrick,
How hard would it be to have a parameter in the plugin that the developer could set, that would not allow any image to be larger than 300px for instance (widest side)? As of now, if I set the resize to ‘200’, it doesn’t resize it to 200 on upload. Is that what you intended? Just curious :)

Great work. I am going to do a write up on your plugin for the WIKI article on image handling so that we can move toward some of your work for the core at some point. (I’d love to hear your suggestions at some point) See this forum post as well for the work in progress.


Offline

#36 2006-03-07 11:32:45

masa
Member
From: North Wales, UK
Registered: 2005-11-25
Posts: 1,095

Re: [plugin] [ORPHAN] glx_admin_image_resize

Excellent plug-in!

The only thing that really had me stumped for quite a while was that square-cropping didn’t seem to work. Turned out it was a cache issue: shift-reload in Firefox does the trick.

Cheers Martin

Offline

#37 2006-03-15 15:35:17

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

I’ve managed to have the plugin work.

I now have a problem. Whit the plugin active, I can’t resize the thumbnail using the original txt commands. They are in page, but have no effect. Do the plugin override the standards txp thumbnail creation?

Can I create with the plugin a horizontal thumb for a vertical image (this need for consistance with other thumbs, by cropping the vertical image in the thumb: I can’t do it with the plugin).

Thanks

Z-

Offline

#38 2006-03-16 21:03:32

bluelena69
Member
From: North Carolina
Registered: 2006-01-06
Posts: 51

Re: [plugin] [ORPHAN] glx_admin_image_resize

I am running the latest stable TXP on IIS. All is well with the exception of thumbnail creation. I get the following message:

Fatal error: Call to undefined function imagecreate() in D:\www\GAD_Site\tp\textpattern\lib\txplib_misc.php(459) : eval()’d code on line 199

I have uncommented the “gd” extension in my php.ini file. Any other ideas?

Thanks


“He has emotional problems. We need a new American President…”

—Hugo Chavez

Offline

#39 2006-03-22 08:14:11

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

@ma_smith: i try to find it out. maybe its possible if i make another uploadfield available for upload via the plugin.

@bluelena69: uncommenting the gd-libraries dont make it available if the extension is not compiled. i dont know if thats the case in you configuration. the error-message is the message that you get without gd, so gd is not available at your system.

@zanza: the plugin interferes with the original txp-functionality. i try to fix some of them. your question with the vertical and horizontal thumbnails dont fit into my small brain ;) what exactly is your question? is it about the direction of the image?

@masa: that seems to be an bug, i will try to fix it.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#40 2006-03-22 13:30:26

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

Re: [plugin] [ORPHAN] glx_admin_image_resize

graumeister,
It would great to get your read on what is happening with the push for new image functionality here and here

Let me know what you think?


Offline

#41 2006-03-23 18:37:19

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

graumeister wrote:
@zanza: the plugin interferes with the original txp-functionality. i try to fix some of them. your question with the vertical and horizontal thumbnails dont fit into my small brain ;) what exactly is your question? is it about the direction of the image?

Hello graumeister.

Suppose I import with aba_image_import a group of 10 images. That plugin automatically create all the thumbnails. 8 of 10 images are 4:3, horizontally oriented (like a landscape), and the thumbnails are created according that proportion. 2 of 10 are 3:4, vertically oriented (like a portrait), and the thumbnails are created according that proportion.

When I list all the thubnail on site, I want all the thumb be of the same size and orientation. So I need to change the thumbnail of the 2 of 10 images I imported. With the original txp function I used to assign the new size both horizontally and vertically, and check the “crop” function. That cropped a little portion of the image on top and on bottom, and gave me the thumbnail in the landscape orientation.

Now, I still haven’t managed to do this with your plugin, and I can’t use anymore the original txp function. This is for a client, so I can’t say him “please temporary disable that plugin…”.

There is a way to do what I need with your plugin? Thank you for any hint!

Bye!

Z-

Offline

#42 2006-04-14 18:14:16

jamiew
Archived Plugin Author
From: NYC
Registered: 2005-01-08
Posts: 74
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

I’ve discovered a quirky behavior with this wonderful plugin: I would resize an image, the thumb would show up fine, and then I would compulsively press “Save” thinking it needed that to stick, or because I’d changed the name or caption or something… well, on submitting the Save it will resize the image again, forgetting the settings I’d used before!! My fresh thumbnail would magically disappear

Offline

#43 2006-06-10 18:27:34

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

jamiew wrote:

I’ve discovered a quirky behavior with this wonderful plugin: I would resize an image, the thumb would show up fine, and then I would compulsively press “Save” thinking it needed that to stick, or because I’d changed the name or caption or something… well, on submitting the Save it will resize the image again, forgetting the settings I’d used before!! My fresh thumbnail would magically disappear

I come to report exactly the same behaviour. Each time I want to modify something in the image (caption, alt text, etc), the thumbnail is regenerated and I loose my original thumbnail.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#44 2006-06-10 19:09:16

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: [plugin] [ORPHAN] glx_admin_image_resize

Me 2, I just noticed this yesterday. Any chance of a fix? Thanks, Lee.

Offline

#45 2006-08-20 16:36:55

lukepermsn
Member
From: london
Registered: 2004-07-15
Posts: 57
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

two things would be really nice with this plug-in:

1) Next / Previous links when viewing images, so that one can just jump to the next without having to return to the image list and trying to find where you are… (i have about 200 images in the library!)

2) To be able to automagically resize and generate thumbnail for a batch of images – category driven would be nice

I used ‘fpx_image_import’ to import a bunch of image folders, but now have to go through and manually generate all the thumbnails! whaaaa!! :’(

:D


“Absorb what is useful, Discard what is not, Add what is uniquely your own” – Bruce Lee

Offline

Board footer

Powered by FluxBB