Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2006-11-17 00:10:38

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Ebl_batchupload

TheEric, quick question for you….

Your plug-in is now working flawlessly for me but the images and the thumbnails look pretty bad when I import them. They look like they are resized out of proportion one way or the other. Are there some tips for making them look better? I tried playing with the resize defaults in the code but they never resize to that default.

What would you recommend (if anything!)?

Offline

#92 2006-11-17 14:46:33

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 606
Website

Re: Ebl_batchupload

Can I see an example? The plugin SHOULD be resizing them, proportionally.

Offline

#93 2006-11-17 14:50:36

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 606
Website

Re: Ebl_batchupload

arengula – in the top lefthand corner of the flash file, does it still say “undefined”? I realize now that you’re getting a security error, where it’s not allowing uploads because it’s unable to authenticate you as a authorized user, and thereby rejecting your uploads.

Offline

#94 2006-11-17 17:49:21

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Ebl_batchupload

TheEric,

Go to this link and check out the “Projects” section. Take a look at the Thumbnails there and you can see that they look somewhat grainy. They do not look this way when I resize them locally on my machine to the same specs., only once they are inside of TXP using the plug-in. When I do it locally (using Photoshop) or whatever, they look really good and clear. This could possibly be a problem with TXP and not your plug-in.

link to site

Last edited by DigitalRealm (2006-11-17 17:51:04)

Offline

#95 2006-11-17 18:20:58

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 606
Website

Re: Ebl_batchupload

Ah! I see.

Yes, Andreas recently let me know that the thumbnails weren’t as “pretty” as they could be. This is something I’m working on for the next release, wherein, a quality setting will be adjustable.

Hopefully I can get done today… if not, most likely Tuesday

Offline

#96 2006-11-17 18:23:47

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: Ebl_batchupload

it’s not textpatterns fault, Eric wanted to avoid timouts when resizing images and the result is a very fast but not very pretty resizing.

One solutions: find (in function ebl_goresize):

imagecopyresized($thumb, $srcimage, 0,0,0,0, $newwidth, $newheight, $width, $height);

change to

imagecopyresampled($thumb, $srcimage, 0,0,0,0, $newwidth, $newheight, $width, $height);

Beware: it takes more time to resize the images – my experience from writing aba_import_images is that some servers choke if you want to import a whole bunch of images at once. I’m not sure whether ebl_batch_upload does a http request for every image from the flash plugin (that would avoid that timeout problem).

Eric told me that he plans to change the thumbnailing to a better way qualitywise and judging from the plugin so far it will probably kick ass, in the meantime you might use the above explained workaround.

Ups… wrote too long… ;)

Last edited by aba (2006-11-17 18:24:33)

Offline

#97 2006-11-17 19:02:16

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Ebl_batchupload

Andreas,

Your workaround works mighty well, there is a huge difference in quality now. Thanks a lot for the help and the quick fix until TheEric can work out a solution in the new version.

Offline

#98 2006-11-17 19:36:26

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 606
Website

Re: Ebl_batchupload

DigitalRealm – Have you noticed a significant difference in speed?

Offline

#99 2006-11-17 19:52:05

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Ebl_batchupload

It actually seemed to go a little faster with the workaround in place. There could be several other factors dictating that though.

Last edited by DigitalRealm (2006-11-17 19:52:42)

Offline

#100 2006-11-17 21:23:17

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: Ebl_batchupload

DigitalRealm wrote:

It actually seemed to go a little faster with the workaround in place. There could be several other factors dictating that though.

its about 4 times slower (my test image with 350kb will we resized in about 0.2 seconds, the resampling is about 0.8 seconds including reading and writing the image file itself) – but I consider the better quality worth the loss of time.

Offline

#101 2006-11-17 23:22:05

DigitalRealm
Member
From: Greenville, SC
Registered: 2006-07-22
Posts: 139
Website

Re: Ebl_batchupload

I just tried 10 images all at 170kb each, took right at 30 seconds to do all 10. That includes the resize and the thumbnail.

Offline

#102 2006-11-19 01:30:40

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 606
Website

Re: Ebl_batchupload

My site will be looking a bit .. gruesome ..as I progress through my live update to my updated design / layout.

Offline

#103 2006-11-19 10:50:43

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: Ebl_batchupload

Whats happened to the link Eric? Seems to have disappeared.
I’d like to see this……

Offline

#104 2006-11-19 17:13:18

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 606
Website

Re: Ebl_batchupload

My plugins can be downloaded from here – pardon the look right now. just uploaded the basic template last night.

Offline

#105 2006-11-21 10:11:30

arengula
Member
Registered: 2006-11-02
Posts: 13
Website

Re: Ebl_batchupload

TheEric wrote:

arengula – in the top lefthand corner of the flash file, does it still say “undefined”? I realize now that you’re getting a security error, where it’s not allowing uploads because it’s unable to authenticate you as a authorized user, and thereby rejecting your uploads.

@TheEric – sorry it took so long to reply. Yes I’ve still got “undefined” in the top left corner. Is there a workaround for this?

Offline

Board footer

Powered by FluxBB