[LON-CAPA-admin] Re: [LON-CAPA-users] jpg vs JPG

Gerd Kortemeyer korte at lite.msu.edu
Wed Nov 26 17:05:21 EST 2003


Hi Nathan,

We are not doing any server-side resizing of images, so this resizing 
is definitely happening in the browser.

Now here's the difference between viewing from DOCS and from NAV: when 
viewing from DOCS, you get the raw file (well, more or less, but for an 
image, that's true). When viewing from NAV, we do need to bundle 
navigation information into the output, so that Forward and Previous 
work, either in the form of JavaScript driving the Remote Control, or 
as HTML when running Remote-less.

For an image, it is a problem to send JavaScript or HTML along, so that 
is where /adm/wrapper comes in - it uses frames to do this (unless you 
are in accessibility (screen reader) mode, which I assume you aren't.

So I think what the browser does is adjust the image size of JPEGs to 
windows, but not to frames.

Currently, I do not see how uppercase or lowercase .JPG could have an 
impact, but I have been wrong before.

I would very much recommend *against* going in by hand and renaming the 
files, especially since currently I do not see how the case of the 
extension could make a difference. Just FYI, you would find the files 
in /home/httpd/lonUsers/ndsu/(courseID)/userfiles/ - if you rename the 
files, you also need to change the references in 
/home/httpd/lonUsers/ndsu/(courseID)/userfiles/default.sequence or 
whichever sequence the images are referenced from (do a "grep" on the 
image filename on all *.sequence files in that userfiles folder), and 
then make sure to re-initialize the course.

- Gerd.


On Nov 26, 2003, at 11:40 AM, Nathan Schoenack wrote:

>
> 	I am noticing some peculiar behavior when I display uploaded course
> documents.  One of our professors uploaded his class notes as .JPG 
> files
> (not lowercase '.jpg').  When I view them through my browser from the 
> NAV
> menu, the files are larger than the desktop.  When I view them from 
> the DOCS
> menu, the images auto-size to fit my browser.
> 	Initially I assumed it was a browser issue, but I also notice that if 
> he
> renames the file from the "Main Course Documents" page, the name is
> unchanged in the "Navigate Contents".
> 	For the previous 4 chapters worth of notes that either he or I 
> uploaded,
> all the file extensions were .jpg (lowercase); we see none of this 
> behavior
> with those files.  It seems that simply renaming these files isn't 
> doing the
> trick.
> 	I thought I'd just log on to the server, find the files and rename 
> them.
> But, I'm not having much luck finding the file directly.  One thing i 
> did
> notice in trying to find the file on the server was that the address 
> to the
> file from NAV page is different than the address when in the DOCS page.
> (There's an extra "/adm/wrapper" in the address from the NAV page)
> 	Does anyone have any light to shed on this behavior, or any 
> suggestions to
> fix it?
>
> 	Nathan Schoenack
> 	NDSU Physics
>
> ps. maybe this is an ADMIN question...I wasn't sure where to post it.
>
> _______________________________________________
> LON-CAPA-users mailing list
> LON-CAPA-users at mail.lon-capa.org
> http://mail.lon-capa.org/mailman/listinfo/lon-capa-users




More information about the LON-CAPA-admin mailing list