Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

File:: Copy & Image:: Size needed for plugin

Quote Reply
File:: Copy & Image:: Size needed for plugin
Hi, you know what would be great? When someone replies to a question on the forum and says something like, "Oh, you need File:: Copy and Image:: Size (this was not in response to a query I made, I just noticed this scouring the forums) and then the person who queried indicates they didn't have any info on those "modules" why not tell them where to get those and where they should go. I bought the thumb_image but still haven't gotten it to work and when I went looking for those two files I found one under "admin/GT/Image (if it's even the right file) but can't find file copy. There is no documentation so I can't check. I also would like to point out that the "set-up" for thumb_image has fields in it that are not marked clearly so I'm not 100% about what I should be putting in them. I haven't used the previous versions so I might be missing details that other users know about. So, I would like to ask where are these two files supposed to be located in the script and where is the best place to get them and when you do get them does the code have to be altered or extended? Gee, I thought I bought the plug-in to avoid all this. S
Quote Reply
Re: [shell] File:: Copy & Image:: Size needed for plugin In reply to
Hi,

You can get them from:

http://search.cpan.org/...8.7/lib/File/Copy.pm
http://search.cpan.org/dist/Image-Size/

...or if you have access on your server, try installing with (SSH or Telnet):

Code:
perl -MCPAN -e 'install File::Copy'

..and

Code:
perl -MCPAN -e 'install Image::Size'

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [shell] File:: Copy & Image:: Size needed for plugin In reply to
Hi,

I've been rewriting these plugins and modules, as a lot has changed over the years.

First, the File::[copy/etc] routines *should* be installed with perl on your Unix machine. If you are *NOT* running Unix (of some sort) there *are* going to be issues. Windows is *not* Unix, and M$ has tried their hardest to make it _HARD_ to do, trying to keep control over the world. ActiveState Perl has some issues of compatibility, I've only been able to get it to run on 1 of my 3 windows machines over the years. Apple, well, to quote a well known character from a old sitcom "I know Nothing, NOTHING."

GT has rewritten/imported the ::Image routines, and you do not need to install Image::Size, since it's already available as GT::Image::Size (I think). This is one rewrite of the plugins.

I've made significant modifications, fixes, and updates to the various image routines, including how the thumbnails are called.

I have been trying to integrate the various image routines into one more encompassing routine that is easier to maintain, more features, and more logical to use.

There are two distinct versions based on how/where images are stored (actually quite a few more based on features).

One version is for a system that is anonymous, doesn't use logged in users, and images are stored with the link similar to how the built in FILE routine works.

The other version assumes a logged in user, stores the images/files groupd by user, attached to a link (or not) but requires a logged in user FOR ALL IMAGE UPLOADS.

I'm setting up a couple of new sites, which should isolate the upload/thumbnail routines into a plugin. Right now they require the profile system, because of the changes it makes to the database system. I have to take those changes out, put them into a "Tools" plug in, and have them check for the modifications and make those that are needed.

The goal of these rewrites was to create ONE MERGED/EXPANDABLE/SCALABLE system for image/file uploads, that would accomodate *most* needs from shopping carts and site-thumbnails to galleries and stock image sites. In order to do that, some basic logic had to be worked out, distilled, fixed up, etc. I found that the use of a few fields in various tables, and a set of configuration options that could be shared/accessed by the various programs simplified communication, installation, and operation of the programs. *BUT* separating out those features into different plugins, checking dependencies, etc has taken much more time than actually developing those features.

All so you *DON'T* have to worry about various installation issues :)

Unfortunately, going back to the beginning, certain modules *need* to be installed on your server, and perl has to know where they are. This is not something *we* can do, it has to be done by whomever has access to, and/or operates your servers for you.

Oh, and the final word, on this, is while there are probably other ways to do it using PHP, or non-GT-engine perl, the way I've been working on it makes the best use of (at least in my non-guru-abilities) the GT engines, logic, and functionality to integrate tightly, and properly into the "flow" of the programs, templates, and thus your GT-code based sites. Yes, I'm behind schedule, but this isn't my main job. I am close, and if people want to test out various image/upload/gallery/etc features as I've posted over the past 6-8 months, please PM me, and tell me your needs.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] File:: Copy & Image:: Size needed for plugin In reply to
Hi, thanks for the info, especially about the profiles etc. I never have gotten the plug-in installed yet because it's not seeing ImageMagick. I have to fix that and just fix the script period as its failing right now...I wanted Unix 7 years ago but it fell on deaf ears and now all I read about is all the trouble Windows 2003 server causes. Regarding the modules, is there a doc that lists the modules and where they are supposed to install? Thanks again, S

Last edited by:

shell: Nov 13, 2006, 3:52 PM
Quote Reply
Re: [shell] File:: Copy & Image:: Size needed for plugin In reply to
I'm assuming you are using Active State perl? If so, you should go to their site, and they should have a listing in the documentation as to what modules are loaded standard with them, and which are not. You should find most of the answers you are seeking over there.

I'm sorry they forced windows on you :( No one should have to suffer that way ;)


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.