On Thu, Jul 9, 2009 at 10:34 PM, Mariano Martinez
Peck<marianopeck(a)gmail.com> wrote:
In addition, I don't seeĀ "Import Local Pictures" command, only
"Import
Zip
with pictures". Any idea?
er... that's weird ! import local pictures should be here, look at the
PGImportLocalFilesCommand class.
Yes, this was weird. I will took a clean image and try again.
Nicolas: I really want and need to use your Gallery.
I did everything again and have the same problem. There is the class "Import
Local Pictures" but it is not showed.
I attach and screenshot.
This is very odd. If you start a Transcript in your image, do you see
any error messages ?
Also, check that PRStructure do contain a "isGallery" method (if
somehow it doesn't, it would at least explain the "import local
pictures" missing.
One thing you can try is to execute the following in a workspace:
PGImageRequest generator: nil
Then edit your gallery (you did create a gallery and not a gallery
list, right?), maybe change the size of the thumbnails, this will
force a refresh (same as what "import local pictures" would do). Check
on your server the directory that normally should have contained the
pictures -- what there anything created ?
e.g. you would have something like:
Root Pictures Path:
http://www.yoursite.com/photos/
Root Local Pictures Path: /var/www/photos/
Gallery Directory Name: MyGallery
if you go look into /var/www/photos you should have something. Maybe
do ls -al and see if anything was created.
For what I can see on your screenshot, the pictures were found and
each picture structure added. What happened if you click on one of
these ? (e.g. in your first sshot, click on "100_2995.JPG"). This
should show you a page with the image, or if not, with a list of
command, one of them being "regenerate" which should try to recreate
the image.
If you want to debug what happens, try this: open a transcript in your
image, open a workspace, reinit the image generator ("PGImageRequest
generator: nil"), then put a breakpoint in the PGImageGenerator class'
constructor to see what happens, and finally go onto one of the
imported image page and click on regenerate. This should automatically
recreate a PGImageGenerator instance that should receive the image
request message -- from then you can trace to see what's happening.
Maybe you can also try to manually test (using a workspace) if the
PGSqueakImageAssistant class do work correctly on windows -- could be
a problem with the jpeg writer class ?..
--
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams