Problem with thumbnails

Hi,
I'm getting a rather worrying result when the wiki creates thumbnails for images and I wondered if other people are seeing it too.
If I upload a relatively large jpg to the site, ca. 270k, it creates a thumbnail (as it should)
However, the thumbnail is a .png (which in itself is not a problem)
However, the thumbnail is 750k in size! This is not what I expect from thumbnails!
Does anyone see the same or different?
I note that Apple have changed from using CoreGraphics to a custom, compiled, ObjectiveC plugin called appledrawstring which we have no option to tweak. I presume that appledrawstring is assuming some sort of graphic support that is only present in newer mac, I'm on an intel xServe so not a flaky machine.
Personally I have been reduced to hacking the imageUtilities.py file to stop it calling appledrawstring in the hope that Apple will overwrite it when they have sorted out the situation.
If lots of people see this effect I will log it as an error.

I have managed to solve the problem as far as I am concerned but I'm not sure it's a fix I can recommend to all of you
For a number of reasons associated with the desire to create a photo library theme for my sites I decided to install Python Image Libraries, see http://www.pythonware.com This is not a trivial task, the overall process takes about an hour and a half but it took me the best part of two days to do it right! If you're interested Google 'PIL Fink OS X' and take a look at the article by Colby Palmer, including the comments at the bottom. I can only say that it worked for me, eventually, on an xServe running 10.6.2 (If you try it and have problems drop a reply to this post and I'll try and help)
Anyway, once it's installed you have access to a rich suite of image manipulation utilities that you can include in the python code for teamsserver. Remember Apple may at any time in the future overwrite these hacks but my experience is that it's rare, they might solve your problem for you and it's easy to add the hacks back in if you keep backups of all the python....
Personally I replaced a section of the python in imageUtilities.py with the following....
def thumbnailedImagePathForImagePath(path, maxWidth = 500, maxHeight = 700):
"""This ... returns the thumbnail path"""
parentPath = os.path.dirname(path)
fileName = os.path.basename(path)
pieces = fileName.split('.')
name = '.'.join(pieces[:-1])
extension = pieces[-1].lower()
if extension in ('jpg', 'jpeg'):
logging.warn("image is a jpeg \n")
thumbName = name + '_thumb_.' + extension
thumbPath = os.path.join(parentPath, thumbName)
if os.path.exists(thumbPath):
return thumbPath
else:
(thumbWidth, thumbHeight) = appledrawstring.GetImageSize(path, 0)
if thumbWidth > maxWidth:
size = maxWidth, thumbHeight*maxWidth/thumbWidth
try:
im = Image.open(path)
im.thumbnail(size)
im.save(thumbPath, "JPEG")
except IOError:
loggin.warn( "cannot create thumbnail for", fileName)
return thumbPath
else:
return path
else:
thumbName = name + '_thumb_.png'
thumbPath = os.path.join(parentPath, thumbName)
if os.path.exists(thumbPath):
return thumbPath
else:
(thumbWidth, thumbHeight) = appledrawstring.GetImageSize(path, 0)
if thumbWidth > maxWidth or thumbHeight > maxHeight:
appledrawstring.ResizeImageToMaxWidthHeight(path, thumbPath, maxWidth, maxHeight, 0, 0)
return thumbPath
else:
return path
Note: you need to add the line
import Image
at the top of the document.
Double note: the formatter for this page has deleted all the indentation of the python code above, which is VITAL. But, if you can't work out what it should be you probably shouldn't be messing about in Python
To recap: The result is that if you upload a 273K jpg file that is larger than maxWidth you end up with a thumbnail jpg that is 73K in size rather than a png that is 738K in size. Which tends to reduce the time it takes to download the page.
p.s.
If you're interested,
I'm pretty convinced the problem is in Apples moving over to image libraries designed for graphics processing chips. (Which I agree is a good idea in principle) If you look at the HTML code that is generated for the thumbnails you will see they include information as to the size of the original image (as was the case in wiki 1) However, instead of giving the size of the original as 810*770 it's given as 809.89584738459584732*769.7463653283847463623, which rather suggests that the whole of the png is being stored as double precision floating point numbers, doh!

Similar Messages

  • Problem with thumbnails not showing

    I am having a problem with thumbnails of psd files showing up in the Organizer for PSE 9 for mac.  I get a picture of a ripped file in place of the thumbnail.  If i bring that file into the editor I can see it fine, it just won't show me a thumbnail in the Organizer.

    Hi,
    Select the images in which you are not getting the thumbnails, then EDIT>Update thumbnail.
    It should update the thumbnails.
    If the issue is still there
    Go to the catalog location (to see the catalog location, Click HELP>SYSTEM info>Catalog location)
    Here you will find a file called thumb.5.cache, rename it to thumb_OLD.5.cache or move it to desktop.
    Relaunch the PSE it will recreate the thumb.5.cache and hopefully it resolve the issue.

  • Firefox does not load long images, pixelates images if they are not in their original size, and has problems with thumbnails (in some sites)

    Firefox has problems with images.
    In sites like deviantART or ImageShack with full-view option, images that are not in full size/thumbnails get slightly pixelated e.g. http://img251.imageshack.us/f/screenshot2tq.jpg/
    Long images get completely messed up if full-viewed e.g. http://img689.imageshack.us/f/screenshot5z.jpg/ (though if the file is only big, it loads just fine)
    Also, thumbnails in some sites get messed up e.g. http://img201.imageshack.us/f/screenshotyr.jpg/
    And in general, Firefox has more 'glitches' like not allowing to add more search engines. It wasn't like that before and I can only assume that it got messed up somewhere with updates, but I'm not really sure.
    I've tried cleaning out cache, re-installing Firefox (multiple times) and even downloaded Firefox 4 beta, but the problem remains.
    I use Ubuntu.
    Does anyone else have similar problems? Or know where the problem lies?

    Do you have the latest driver for your graphics display card?
    Create a new profile as a test to check if your current profile is causing the problems.
    See [[Basic Troubleshooting#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Problem with thumbnails in Bridge CS4

    I was having a problem with Adobe Bridge crashing on me when I was looking at a large amount of images - like all my 2011 images. I'd read online that I needed to purge my cache and delete my preferences by holding down the ctrl key when starting Bridge and choosing all three options to "reset preferences", "purge entire thumbnail cache" and "reset standard workspace".
    I did this, but it really did not solve my problem. I'm still working on that. It did create a problem that all my raw files show up without thumbnails, and I can't for the life of me figure out how to regenerate these thumbnails. I've tried downloading the camera raw plugin and installing that again and it does not help.
     My raw files are from a Pentax K100d and are pef files.
    I went back to some old photos, in my 2010 folder.  When it first came up it showed the thumbnail for just a brief moment.  It then went blank and then up popped that stupid little flower icon that I seen when there is no thumbnail.
    Any help would be appreciated.

    Thank you so much for your response.
    I am running 64 bit Vista. I have CS4 and found that the latest version of Camera Raw that I could install was version 5.7.  I found the install instructions on the Adobe site.  As it told me to do, I downloaded the zip file for version 5.7 and extracted.  I moved the Camera Raw.8bi file from the top directory into C:\Program Files (x86)\Common Files\Adobe\Plug-Ins\CS4\File Formats and moved the Camera Raw.8bi file from the Win64 folder into C:\Program Files\Common Files\Adobe\Plug-Ins\CS4\File Formats.
    Does this look right to you?
    I can double-click on any of my raw "pef" files and I can edit them in Camera Raw, no problem.  I can also look at the "about Camera Raw" and see that it shows version 5.7.
    It just won't generate thumbnails.
    This worked in the past.  What happened to mess things up is a long story.  I got a new camera, a Nikon D5100.  What I did not realize was that this camera was too new for CS4 to be able to recognize.  The updates that include this camera are only for CS5.  At some point after I got this camera and came home with a ton of vacation pictures - saved as Raw + Jpg (so I had a ton of photos) bridge started crashing.  I don't know if it was the size and or number of photos that I was trying to have visible in Bridge at one time or what.  I started Goggling what could be the problem.  I found one source say that I needed to reset the preferences and such and that I should start Bridge while holding the ctrl key and choose all three items to reset.  I did this and my thumbnails that were there for all my old photos shot with my Pentax k100d went away.  I just see a flower icon in their place.  I've not been able to get them back.  I have since moved all those big photo files to another folder and the crashing has stopped.  Now I just have the problem that I caused.
    What bothers me is that I saw a post here in this forum that says to never use the "purge cache" option from the edit > preferences box in Bridge.  I can't find this post again.  I have done this also before I saw that.  I have also moved my cache to another location so that it had to create a new one. Still this does not work.  I've restarted Bridge, rebooted, "purged the cache for the selection" and "generate high quality thumbnail".  Nothing I've tried works.
    Would reinstalling Bridge help?  Do I have to install all of Photoshop?  Do I have to uninstall first?

  • Problem with thumbnails loading on LR Gallery.

    Hi everyone.
    I am having difficulty getting galleries to upload properly, and show the jpg files after running them through Lightroom.
    I use the web gallery in LR, but then when I go to view a gallery online (it looks fine my the example given in LR), random photos are not uploaded.
    I have tried uploading in LR, and also FileZilla.
    The error I get in File Zilla is " 550 The process can not access the file because it is being used by another process. 
    Critical File Transfer Error."
    The thumbnails that are being left out are COMPLETELY random!  The number of the image left out varies from gallery to gallery.
    I have called my host, as well as my internet provider, and there is no problem on their end.
    I am working on horse show photos, and need to get these galleries uploaded correctly asap.
    Can anyone help please??

    Now I am able to load the applet on MAC OS X 10.4.11. This is due to network issue.
    Now my problem with the applet functionality. My applet will display the map image. Applet contains the navigation arrow keys at the top left of my applet. These keys will be used to navigate through the map.
    The problem is while user using the navigation buttons, the image got squash and stretch.
    This is happened only on MAC OS X 10.4.11 and Its working fine on PC and MAC OS X 10.5.5.
    Please anyone help in this regard. Thanks in advance.

  • Problem with thumbnail icon in Organizer

    Running Windows 7 Home Premium, 64-bit OS, installed Adobe Photoshop Elements 13 running organizer.  Brand new installation, no previous versions installed.
    I installed Elements last week and I'm trying to access my digital photos and some video clips using organizer.  I used the import from files and folders to display the media files within organizer.  The media files sit on a NAS (network attached storage) on drive X:.  Throughtout the entire process, all I seem to see are hourglass icons and after finishing the import, continue to see same hourglass icon.  I've tried to use the update thumbnail option to no avail.  When I double click on the icons, I am able to see the photos/video clips with no problems.

    Hi Venkat,
    Have you seen this
    blog post from Brian? Unfortunately, it seems to be by design and not fixable. Pay attention to the comments and particularly the one from Brian on 23 dec 2014:
    "The document link problem will not be fixed. In SharePoint 2013 there are not the event receivers for documents that allow us to track the coming and going of documents."
    Talking about PS2013 SP1, it fixes bugs related to icons but not this one. See this
    blog for reference.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Problems with thumbnails, etc.

    Yesterday I installed Elements 12 and Premiere.  I then opened Elements, selected import, and imported jpeg photos/raw photos from a sony RX10 and my Nikon D700 on another card.  The thumbnail pics won't show up but when I click on an hourglass the photo itself opens up.  I"m on an iMac, not exactly technically oriented and I could use some help.  At this point I'm just not sure what to do.

    Hi,
    Please try right clicking on the file > Update thumbnail
    If the problem still perisists, please go to Help > System Info , go to the location of catalog as mentioned in the system info.
    There you will find a "thumbs.5.cache" file, rename it to "thumbs.5.cache_old"
    Now relaunch the application and see if the thumbnails get generated now.
    Thanks,
    Anwesha

  • Problem with generating thumbnails for Facebook

    After yesterday's Business Catalyst failure (Intermittent site loading issue on all data centers) we have a problem with thumbnails for Facebook.
    Our each publication has an extra tag og:title placed in the <head>. For example in this article: http://www.leftlane.pl/lip14/zanizanie-przebiegu-samochodu-w-koncu-stanie-sie-niemozliwe.h tml
    there is tag <meta property="og:image" content="http://www.leftlane.pl/lip14/images/364994_8207.jpg" />
    Until yesterday, every published text was getting into debugger (https://developers.facebook.com/tools/debug/). Debugger fetch the image creating a thumbnail. Everything worked as it should.
    Unfortunately, after yesterday's failure thumbnails are no longer generated. In place of the thumbnail is a white spot, like in the picture below. Can I do something to thumbnails work again?
    We are using Adobe Muse (2014.1).

    Just a word of warning about this facebook tester, facebook caches results for sometimes upto 48 hours, so if index the page using facebook then make a change on a page then reindex most of the time (in my dealings) it looked the same, I had to throw different querystring information into the URL or use different URLs to make it look different to facebook and get a fresh (re)index and for it to pick up changes.

  • Problems with JPEG encoding

    I'm making photo album on the web. But I have a problem with thumbnails generation. I have read alot about it on this forum (thanks guys) but I have a problem:
    Sometimes (but not every time) and independent on the image I've got thumbnail picture that can not be readed neither by IE or Photoshop or another programm. I'm using next encoding sequence:
    PEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    com.sun.image.codec.jpeg.JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bufferedImage);
    writeParam.setCompressionMode(JPEGImageWriteParam.MODE_EXPLICIT);
    param.setQuality(0.7f, true);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(bufferedImage);
    And this code operate in the Servlet enviroment. So, I can not understand what is wrong?
    Renat.

    Hi Renat.
    I may be wrong but I have observed some troubles with JPEG encoding (particularly because of a lack of CPU)... You may have the same trouble... The problem is that I don't how to catch these errors but if someone knows how to, I would be really interested in... I can only catch them when I decode these images thanks to TruncatedFileException and ImageFormatException.
    Stephane.

  • Problems with images uploaded to Etsy

    Hi guys,
    I'm having a huge problem with thumbnail images on my Etsy front page being pixelated when viewed on my ipad mini. I tried a few times posting this to the Etsy help forums to no avail.
    Here's what I'm doing:
    ========================
    -I'm creating a new document in photoshop with pixel dimensions of 1000 x 800 (tried lower and higher), resolution of 72 (tried higher), placed an image taken by my 14 mp digital camera, and pulled in a background I found online at 72 dpi.
    -I'm saving this as a jpeg with the 'quality' at 12. I tried saving for web and lowering the file size, didn't work.
    Other info:
    =========================
    -Other people's thumbnails look just fine
    -When viewed on my laptop monitor as well as my external monitor, everything's peachy.
    -Larger views of the image as well as other thumbnail on other pages look totally fine, it's just the main page i'm having problems with
    -I haven't actually opened the shop yet, so maybe this is just a weird thing that Etsy does.
    Any help would be greatly appreciated. Thanks!

    I'm running version 2.1 (final) now but I still have the same problem and it's very annoying problem.
    Any help on this one?
    You've run into (what I believe is) a bug in how NitroX resolves URL-paths within a JSP. NitroX is "WAR-centric", meaning that it considers the WAR's context root to be the root of the entire web-application. So it resolves the leading slash in a URL-path (e.g. /images/...) to that context root. However, J2EE web-applications may consist of several WARs deployed in one or more EARs in a single app-server instance. This means multiple context roots at the same host:port. So the correct way to resolve a leading slash in a host-relative URL-path such as "/images/..." is to map it to the root of the host:port and not to the WAR's context root.In your example, the "/images/..." should be mapped by NitroX to the equivalent of "http://localhost:8080/images/..." and not to "http://localhost:8080/birka/images/..." Your original URL-path of "./images/..." (or just "images/...") should have been mapped by NitroX to "http://localhost:8080/birka/images/..." as it is relative to the current context root. So in summary, I think your original code is correct and the problem is with NitroX.
    I reported this bug a few months ago, but haven't heard any news of its being addressed. What do you say M7-support, any update on this?
    Thank you for your reply, I will get in touch with M7-support to hear with them status of this bug. I'm running version 2.01 Final, I haven't yet tested pre-releases since they are not final

  • Problem with Alt Text output from thumbnail image of Lightbox widget

    I’m having a problem with the Lightbox widget not producing alternative text based on the image properties.  I’ve set ALT text for the image properties on both the larger Ligtbox image as well as the thumbnail.  But the HTML output from Muse does not include the ALT text on the thumbnail version of the image.  Here’s an example:
        <div class="popup_anchor">
           <div class="Thumb popup_element clearfix" id="u4409"><!-- group -->
            <a class="anchor_item grpelem" id="untitled"></a>
            <div class="grpelem" id="u4433"><!-- image -->
             <img id="u4433_img" src="/images/n0060292x292.jpg" alt="" width="292" height="292" />
    This may be a problem that came in a previous release of Muse.  I have a few older examples where ALT text is produced, but it’s no longer updated if I update the Image Properties.

    I'm seeing the same problem. Looks like a bug to me. Any ideas as to how we can get this on Adobe's bug fix list?

  • Bridge CS4 - problem with yellow  thumbnails

    I've installed Bridge and Photoshop CS4 and am having a problem with very yellow thumbnails (I still have CS3 installed and this is NOT happening there with the same images). I'm running on a a Windows Vista Service Pack1 platform. When I download my images from my Nikon D300 NEF and jpg files they look fine on the card and the download selection screen in Bridge but when they are downloaded they are VERY yellow (both NEFs and jpgs). The minute I open them in Photshop CS4 they are fine with no adjustments necessary. Does anybody have any ideas?
    j.
    PS - with 4G Ram both programs are running noticibly faster than CS3 on the same machine - that's a good thing!

    If you use the embedded jpeg do you still get yellow thumbs? Don't have CS4 but that option is under workspaces quick link I think.
    If so if they were just RAW images you would need to tweek the ACR default settings.

  • Problems with Youtube thumbnails

    I am having problem with Safari while browsing Youtube thumbnail images, they either load really slow or not at all. The strange thing is Firefox browser loads them all instantly. Does anyone else have this problem?
    I am using an AirPort connection to a 2wire 2700HGV-B modem/router.
    iMac Intel, 2 foot, 2.16GHz, 1GB   Mac OS X (10.4.7)  

    Hello Doug,
    This sounds a little like a problem we had with wireless connectivity. The setup is via a landline broadband modem, and a wireless router. When we downloaded much, especially video, it would seem that Safari froze until I turned Airport off and then back on.
    The problem went away when we went into the settings for the wireless router and the landline broadband router, and disabled the facility for the routers to act as a server.
    Maybe your setup is different; but if it's similar, you could try that.
    Best wishes from Ireland,
    Martin
    If you found that this contribution helped to answer your question, please consider awarding some points. Why reward points?
    Powerbook 15-inch G4 1GHz   Mac OS X (10.4.8)  

  • Problem with a thumbnail 600x600

    Hello, my problem is with a videos having a thumbnail 600x600. When I sync my IPAD, the thumbnail don´t display into ITUNES, but in Windows or other software, the picture display normally. What´s happen?

    The right question is
    Hello, I have problems with videos having 600x600 pixels thumbnails. When I sync my Ipad, the thumbnails don't display inside the Video player, but in Itunes for Windows and in other softwares, the thumbnails display normally. What's happening?

  • Cache problem with "videos" viewed by thumbnail ?

    Hello,
    When I add video clips to my iTunes library, I have to crite the name of the author, the album... but sometimes display in the video view seems not to refresh : the clip are still listed without albums. I added clips 4 days ago, it refreshed immediately. I added clips three days ago, it still has not refreshed. I added clips two days ago, it took one day to refresh.
    I tried changing view, changing album name, nothing work.

    This is due to a bug in Flash Player 9.0.115.0, released on
    12/3/07.
    Techsmith, the company that produces Camtasia, reported the
    problem to Adobe a few months ago, but Adobe has not released an
    update for it. Adobe suggested downgrading to an older version of
    Flash Player, but older versions of Flash Player have security
    vulnerabilities that could result in your computer being attacked.
    Incidentally, Player 9.0.115.0 is classified as a "critical update"
    by Adobe.
    Techsmith has released a patcher to fix affected Camtasia
    videos, but the fix must be applied to the files on the server (all
    of the Camtasia files) and can't be used by viewers. The problem
    with Player 9.0.115.0 affects more than just Camtasia videos, of
    course.
    Until a newer version of Flash Player is released, you
    probably just need to live with it unless you're willing to risk
    the security holes in older Player versions. We're coming up on
    three months since Player 9.0.115.0 was released. Given the long
    delay in fixing the problem, and since Techsmith claims that Adobe
    has made fixing the problem a high priority, it's possible Adobe's
    engineers can't find a fix. Only time will tell.
    For more information, search this forum for "Flash Player
    & Camtasia Studio", "Player 9.0.115.0 MP3 issues", and "flash
    player audio chirps and video delays". For confirmation of the
    security flaws, search the web for "apsb07-20".

Maybe you are looking for

  • How do I turn off the advertising bar on the right of the screen?

    Everytime I start Firefox there is a very annoying bar on the right that contains advertising. I want to turn this feature off. How do I do it? I've searched the help menu but can't get an answer.

  • Differentiate between invoice and clearing document

    the table BSID and BSAD contains the details of both invoice and clearing documents. How to differentiate betwee invoice and clearing document. i thought that all debit documents are invoices and credits are clearing documents. But its not working be

  • Monitoring IDoc Receiver Adapter

    Dear experts, in FILE -> XI -> IDoc scenarios erros are not shown correctly. Neither SXMB_MONI nor RWB shows errors for outbound status of the IDoc when I select for errors. If XI sends an IDoc to another System and the partner for the RFC connection

  • Is it possible to install a WCS on Linux/Debian ?

    Hello, our custom, ask me if is it possible to install a WCS on Linux/Debian ? Thank you for your help !!! Laurent

  • Xfer iTunes playlist to GB3 w/few keystrokes...

    I wish to transfer a playlist from iTunes to GB3 with a few keystrokes. Right now I have to drag each song to the timeline. Much too time consuming. I also want each song to be staggered onto two tracks. So when I want to download to disk it will all