On Thu, Jul 9, 2009 at 9:29 PM, Nicolas Roard <nicolas.roard(a)gmail.com>wrote;wrote:
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 ?
No. Just "generator thread started".
Also, check that PRStructure do contain a "isGallery" method (if
somehow it doesn't, it would at least explain the "import local
pictures" missing.
Yes. isGallery is implemented in PRStructure with ^ false and ^ true in
PRGallery.
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?),
Yes. I am creating a Gallery, not Gallery List.
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 ?
Yes. That trick would generate all again.
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.
My website is here:
http://localhost:8888/seaside/destinoMochila/
I craeted a Gallery with this:
Root Pictures Path:
http://localhost:8888/seaside/destinoMochila/
Root local pictures path: /home/mariano/galeria/
Gallery Directory Name: galeria
mariano@mariano-ubuntu:~/galeria$ ls -la
total 28
drwxr-xr-x 5 mariano mariano 4096 2009-07-10 00:07 .
drwxr-xr-x 149 mariano mariano 12288 2009-07-09 23:55 ..
drwxr-xr-x 2 mariano mariano 4096 2009-07-10 00:06 galeria
drwxr-xr-x 3 mariano mariano 4096 2009-07-10 00:07 images
drwxr-xr-x 3 mariano mariano 4096 2009-07-10 00:07 thumbnails
mariano@mariano-ubuntu:~/galeria/galeria$ ls -la
total 100
drwxr-xr-x 2 mariano mariano 4096 2009-07-10 00:06 .
drwxr-xr-x 5 mariano mariano 4096 2009-07-10 00:07 ..
-rwxrwxrwx 1 mariano mariano 88641 2009-03-23 01:29 S5002755_v3.JPG
mariano@mariano-ubuntu:~/galeria/images$ ls -la
total 12
drwxr-xr-x 3 mariano mariano 4096 2009-07-10 00:07 .
drwxr-xr-x 5 mariano mariano 4096 2009-07-10 00:07 ..
drwxr-xr-x 3 mariano mariano 4096 2009-07-10 00:07 600px-0
mariano@mariano-ubuntu:~/galeria/thumbnails$ ls -la
total 12
drwxr-xr-x 3 mariano mariano 4096 2009-07-10 00:07 .
drwxr-xr-x 5 mariano mariano 4096 2009-07-10 00:07 ..
drwxr-xr-x 3 mariano mariano 4096 2009-07-10 00:07 80px-0
So, as you can see, all is being generated.
I debug PGImageGenerator but nothing strange happens.
The problem is that they are not displayed.
If I put a breakpoint in
PGPictureHtmlView>>renderContentOn: html
if I print self picture representationImageURL i get: '
http://localhost/seaside/destinoMochila/images/500px-0/galeria/S5002755_v3.…
'
which is wrong because I don't listen in 8080 but in 8888. So it should be
'
http://localhost:8888/seaside/destinoMochila/images/500px-0/galeria/S500275…
as I put when I create the gallery.
In addition, 'http://localhost/seaside/destinoMochila/images/'
or
http://localhost:8888/seaside/destinoMochila/images/600px-0/galeria/
in the browser shows:
"The requested object /seaside/destinoMochila/images was not found on this
server."
The problem is that PGPicture>>representationImageURL
you do:
remoteRepresentationFile url
and that answers something like
'
http://localhost/seaside/destinoMochila/images/550px-0/galeria/S5002755_v3.…
'
I had to change
RioRemoteExecutive>>host from
host
^ url authority
to
host
^ url authority, ':', url port asString
However....it doesn't show the pictures :(
I don't know what else to test or debug...
Thanks for the help
Mariano
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.
Yes. I saw that command but same results: the image is not displayed.
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 ?..
I am now in Linux :(
--
Nicolas Roard
"I love deadlines. I like the whooshing sound
they make as they fly by." -- Douglas Adams
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki