Flattened pixmap mask description wrong for small images -- Bug?

I've been working with images loaded from disk lately, and it seems to me the description for the mask element of the flattened pixmap cluster is incorrect when the image size is small. The online help reads:
mask is an array of bytes in which each bit describes mask
information for a pixel. The first byte describes the first eight pixels, the
second byte describes the next eight pixels, and so on. If a bit is zero,
LabVIEW draws the corresponding pixel as transparent. If the array is empty,
LabVIEW draws all pixels without transparency. If the array does not contain a
bit for each pixel in the image, LabVIEW draws any pixels missing from the array
without transparency.
So there should be one bit in the mask for each pixel. Here is what I'm getting:
image size   # pixels    mask length, bytes (bits)
1x1               1            2   (16)
1x2               2            2   (16)
2x2               4            4   (32)
4x4              16            8   (64)
8x8              64           16  (128)
9x9              81           18  (144)
32x32          1024          128 (1024)
33x33          1089          198 (1584)
It looks like there are two issues here. One, the mask array works on rows of pixels. If the row does not end on a byte, the byte is padded on the right with zeros until the end, then the next row starts. E.g., for the 9x9 image, pixel #9 is byte 2, bit 8; byte 2 is padded with zeros; pixels 10-18 start with byte 3.
Two, for some reason small images (i think 8 pixels per row or less, but I'm not sure) have every other byte a zero. For example, here is the mask for my 4x4 test image, with every pixel opaque:
   11110000 00000000 11110000 00000000 11110000 00000000 11110000 00000000
According to thel help text, the mask array should be 2 bytes long, with every bit a 1.
It seems to me that the first issue is likely intentional, and the help text just isn't entirely clear. The second issue, I'm not sure about. Maybe it was just assumed that pictures would be large and small pictures wouldn't be used?

Wiebe is correct that every line of the image gets an even number of bytes in it mask.
The help was misleading, I agree. I have reported this confusion as a bug in the documentation (I do not remeber to CAR#) so it can be explained better.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • OpenGL Best Only for Small Images in CS5?

    I've been using Photoshop CS5 daily from shortly after the day it was released on my Windows 7 x64 system.  I have a decent dual processor dual core w/hyperthreading workstation with 8 GB of RAM and a VisionTek ATI Radeon HD 4670 video card with 1GB of onboard video RAM.  Mostly I've been editing relatively small images (10 to 20 megapixels), though I've successfully made some pretty big panoramas.
    Outside of a few glitches, most of which were solved with 12.0.1 (i.e., things like crashing or stuck processes after shutdown), I've had very good results with Photoshop CS5.
    I tried the various OpenGL settings, and since the "Basic" setting seems to stress OpenGL the least while still providing me access to the new OpenGL features (e.g., brush gestures), I have chosen that setting.  Keep in mind this decision was also influenced by the sheer number of OpenGL-related issues being reported here.
    However, in the past day I have been working on a rather larger image...  Not huge, as Large images go, but large enough that it has caused me some unexpected Photoshop trouble.  Basically, it's a set of 7 digital camera images of 10 megapixels arranged in a 12 x 36 inch layout at 600 ppi.  Overall image size is 21,600 x 7200 pixels x 16 bits/channel.  The image on disk is roughly a gigabyte.  Here's a small version so you can see what I'm talking about...
    I had this image in 2 layers - the images with transparent surround and outer bevel layer style, and the background blue.  The customer wanted the images spread out a bit more so I undertook to do so - by lassoing sets of the images and moving them apart.
    Here's where the trouble began.  Some of the work involved zooming in, to say 250% or closer, to check alignment and to nudge things as needed.
    While working on this image I find Photoshop gets quite sluggish, though it's not hard on the disk drive.
    After I moved everything into place and did File - Save, my system simply froze as the progress bar reached 1 pixel shy of a full bar.  That required a hard reset of the computer.  No events were logged in the Windows System or Application logs.
    I redid the work, and second time I did File - Save As... the dialog never came up.  Photoshop just disappeared.  Again, no errors logged.
    Today I ran through the edit again, this time with OpenGL turned off.  I found:
    1.  The system was nowhere near as sluggish when displaying the image at high magnifications.  I could move things around easier.
    2.  I was able to complete the same edits again (the 3rd time) and File - Save As... successfully.
    Today I upgraded my ATI drivers to Catalyst 10.6, re-enabled OpenGL in Photoshop, and went through the same edits on the same file a 4th time.
    1.  Same sluggishness as before when zoomed in.
    2.  After moving the images around, when I went to use the Spot Healing Brush Photoshop crashed:  Unhandled Exception, 0xC0000005:  Access violation reading location 0x00000000007e8ebb0.
    I don't have Photoshop debugging symbols, but this is what the Call Stack showed in the debugger:
    I will continue to experiment with this to see if I can isolate what's causing it, but the one key thing here is that it works with OpenGL turned off, and it fails in several ways with OpenGL turned on with a powerful, relatively modern video card.
    -Noel

    Thanks for your responses.
    I'm investigating the Normal and Advanced settings with this same image as time permits.
    So far I've been able to complete the same edits and save the file successfully with OpenGL set to Normal.  Notably as well Photoshop was VERY much more responsive.
    It's a very small sample size, but one might be forgiven for concluding that Photoshop has had the most testing with the OpenGL setting at default.  I do plan to continue testing with this image, as it seems to be a good one for stressing the system and reproducing one or more problems.
    I may have been wrong in my judgment that the Basic OpenGL setting stresses the system less.
    As far as why I'm working with a 16 bit image and at this high a resolution, I am specifically pushing Photoshop hard since with a 64 bit system these things should be possible, and I haven't gotten a lot of experience working on big images with 12.0.1.  While this particular image does not require it (especially for a 12 x 36 print) I often DO work on 1 gigabyte or more astroimages, and I just haven't had a good big one to work on lately.
    -Noel

  • GPS Metadata for Managed Images Bug

    Alright this is really dumb. Aperture strips the GPS metadata for managed images on a version export, but does not for referenced files.
    It just took me 4 hours to figure that out, ug. Metadata is sacred! Always preserve it.

    My Aperture library uses managed masters.
    I too discovered that if I performed *version exports* of geotagged masters the exported images did not retain the GPS data. The problem was the same regardless of whether the masters were .jpgs or RAW files. (Geotagging was performed with Maperture and Maperture Pro; the bug symptoms are the same regardless of which tool was used.)
    Additionally, I discovered that if I performed *master exports*, then not only were the geotags retained in the exported files, but that +reimporting those same exports resulted in new masters whose versions would subsequently retain their geotags on version export+.
    synonym wrote:
    If you Relocate Masters... BEFORE you add GPS metadata using Maperture you don't lose any IPTC metadata. If you then Consolidate Masters... you can then apply GPS metadata to these images within your Aperture library and you will not lose IPTC or the GPS data on exporting the versions.
    If I'm reading this correctly it sounds like you can "scrub" your library of the problem by relocating masters and then consolidating them again, and that subsequently applied geotags (and by inference IPTC metadata) will be retained on new version exports. Did I get that right?
    However if you already have loads of images in your Aperture library that you have added GPS data to with Maperture and you also have loads of IPTC metadata on them and adjustments what do you do?
    I did a backup of the library at this point to a vault. I then restored the vault and GPS data and IPTC metadata was all retained and was also all retained on exporting versions!
    And if I'm reading the last sentence of your post correctly, it seems like the consistent behavior between our two situations is that if *images are brought into the library with geotags already in them* - in your case by library restoration and in my case by re-importation of previously geotagged masters - *then the geotags will be retained on subsequent master and version exports*.
    Is that a valid conclusion to draw? If so, it sounds like I could workaround the problem of geotags missing from my version exports by either A) relocating and then consolidating my masters, or B) by the three-step process of:
    1) geotagging my images,
    2) updating the vault, and then
    3) restoring my library from the vault.

  • Has anyone come across the 'insufficient data for an image' bug in Reader 9.5.1??

    We have an application that uses Reader to open scanned documents containing JP2K images and our users are intermittently getting this error however I can only find instances online of this bug from version 9.5.2 up.
    Has anyone seen this bug in 9.5.1??
    Thanks.

    Hi, thanks for getting back to me so quickly.  Our application uses scanned images up to 10 years old, and there are thousands of images so we cannot rescan these unfortunately.   
    I work in a large organisation with it's own desktop team so unfortunately I can't upgrade the version of Reader on our user's machines to see if this resolves either.  The desktop team will also not upgrade the version as the problem appears to have only started in 9.5.2. 
    Does anyone know how I can confirm if the problem was first seen in 9.5.2 or if there were instances in 9.5.1 also?
    Thanks again

  • All of a sudden the screen on my iMac 10,1 is too small for the image. Can't figure out how to reduce the size of the Finder or any of the Apps.

    All of a sudden the screen is too small for the image. Hard to explain, but in order to see the entire Finder window, I must scroll the image up/down, left/right.
    It's not just the Finder though, all of the apps are affected this way too.
    It's probably got something to do with the fact that I have an HDMI cable running from the Mac to a Vizio 42" TV. It's been running this way just fine for over two months though.
    Any ideas?

    You probably accidently zoomed the screen.  Hold down CNTL while scrolling down with the mouse or trackpad to unzoom.  Cntl - scroll up to zoom.
    Regards,
    Captfred

  • How can I copy a photo from iphoto to PReview to make it smaller for uploading to a site that requires a smaller image?

    How can I copy a photo from iphoto to PReview to make it smaller for uploading to a site that requires a smaller image?

    I don't think you need Preview.
    Select the image and use File->export and you have full control over the size and compression.

  • How to i resize a larger 72ppi image to better quality smaller image but for correct size to paste into flyer

    Hi, I am trying to resize a larger 16cm wide image saved at 72dpi to a smaller better quality 5cm wide image for invites for an art exhibition I am having. I figure there must be lots of information in the pic given that it is large, I just want to condense it into a smaller image. If I adjust the size to 5 cm wide it changes the dpi to 230 which would be better for printing (the 72 dpi is way too grainy). However when I paste it into the flyer I am making in photoshop it pastes as a massive picture. I then tried to drag the corners in to make it the right size and it became even grainier than a 5cm wide 72dpi image. I hope that makes sense to someone. So basically I need a 5cm wide document size that I can put in my small flyer that is the best quality I can make it! Thanks in advance!

    Up-sampling from 72ppi to 300-600ppi can result in blurry images.  It's always best to start with a good quality, high resolution image if you can.  Go to Image > Image Size.  When up-sampling, use Bicubic Smoother setting.  When down-sampling, use Bicubic Sharper.  See screenshot.
    Nancy O.

  • Create Hover image for small cat thumbs?

    Hi,    I was trying to use javascript to create a pop up hover image for the catalogs, but I can't get it to work with the tag format for small and large images 
    Anyone have any ideas?
    <div class="shop-product-small {tag_custom2}">
    <div style="display: none; position: absolute;
    z-index: 110; left: 400; top: 100; width: 15;
    height: 15" id="preview_div"></div>
    <div class="image">
    {tag_smallimage}  </div>
    <h5>{tag_name}</h5>
    <ul>
        <li class="price">Price: <strong><span class="noprice">{tag_saleprice}</span></strong></li>
        <li class="quantity">Qty: <strong>{tag_addtocartinputfield}</strong> {tag_addtocart}</li>
        <li class="callus"><em>Call for Price</em></li>
    </ul>
    </div>
    I was trying to use something like this: <img src="smallpic.jpg" width="100" height="142" style="padding-top:23px;" onmouseover="showtrail(310,440,'largepic.jpg');" onmouseout="hidetrail();" />
    But you can't use img src or tag_small image in the display...

    Well, jusing javascript appears to be a problem in that , if I use js the item pops up but is within the narrow table cell frame of the small item display and is clipped. And CSS hover class doesn't seem to work either, even with a high z-index.  Not sure it is possible with the way BC works with catalogs..?   When I did get the js to work, it opens the large image of the last item on the page, not the one you hover over.
    Anyone else get that feature to work?

  • To retain color space value for Monochrome images during flattening.

    In our project, we are extracting image content from PDF file and doing some raster operation by using LeadTool and then flattening the processed image in PDF file.
    Input PDf file: One page which has monochrome image
    For extracting image content from PDF file, we are using below Acro Plugin API:
    AVConversionConvertFromPDFWithHandler
    After this, we will perform some raster operations by using LeadTool and then flattening will happen.
    While doing flatten we are performing below operations in sequence:
    1. Set bitspercomponent  =1.
    2. Create a new color table using DeviceRGB.
    3. Create image by using below Acro Plugin API:
    pdeimage = PDEImageCreate(&attrs, sizeof(attrs), &matrix, 0, cols1, NULL, &fil, asstm, NULL, 0);
    4. Add image in PDF content.
    Now flattening is successful, but monochrome(Original Image format) is changed to RGB. We want to retain the color space(DeviceGrey).
    We have tried the below solution to retain the color space:
    1. Using the old image's color space value for new image creation. But this gives inverted color(Black to White and vice versa)
    Please help us to retain the color space while flattening.

    We are using JPG file format.
    Please find below the code portions which we used to add image in PDF file,
    //Read Image Data
    ========================================================================================== ==================
    ASBool ret = TRUE;
    // analyze img
    ASInt32 index = 0, quadSize = 0;
    BITMAPFILEHEADER* bmfh = NULL;
    // BITMAPFILEHEADER
    if(  !bQuadSize )
      bmfh = (BITMAPFILEHEADER*)img;
      index += sizeof(BITMAPFILEHEADER);
    // BITMAPINFOHEADER
    BITMAPINFOHEADER* bmih = (BITMAPINFOHEADER*)(img+index);
    index += sizeof(BITMAPINFOHEADER);
    // RGBQUAD
    if( !bQuadSize )
      quadSize = bmfh->bfOffBits - sizeof(BITMAPFILEHEADER) - sizeof(BITMAPINFOHEADER);
    else
      quadSize = size -  bmih->biSize -  bmih->biSizeImage;
    ASInt32 rgbquadNum = 0;
    char* quad = NULL;
    if (quadSize > 0)
      rgbquadNum = quadSize/sizeof(RGBQUAD);
      quad = (char*)(img+index);
      index += quadSize;
    // Image
    //ULONG imgSize = size - bmfh->bfOffBits;
    char* image = (img+index);
    DURING
       if(!pd)
        E_RETURN(FALSE);
       PDPage pp = PDDocAcquirePage(pd, page-1); // Get Page(PDPage) of specified page number
       PDEContent pdeContent = PDPageAcquirePDEContent(pp, gExtensionID); // Get PageContent(PDEContent)
       ASInt32 numElems = PDEContentGetNumElems(pdeContent);  // Get PageContent num
       // Check BitMap width, height, biXPelsPerMeter, biYPelsPerMeter changed
       ASFixedRect mb;
       PDPageGetMediaBox(pp, &mb);
       ASFixedRect chgMediaBox;
       memset(&chgMediaBox, 0 , sizeof(ASFixedRect));
       if (paperSizeChangeType == PAPERSIZE_SIZESPECIFICATION)
        chgMediaBox.right = width;
        chgMediaBox.top = height;
       // Get PDEImage's Attributes & Filters & ColorSpace from Old Image in PDF file
    ========================================================================================== ===================================
       PDEElement pdeElement;
       ASInt32 importIndex;
       ASInt32 type;
       PDEImageAttrs attrs1;
       PDEColorSpace cols1;
       //ASAtom colname;
       PDEFilterArray fil1[20];
       ASInt32 filNum1;
       ASFixedMatrix matrix1;
       bool isTransformedPage = false; //EV2.8.02000_19651_Retain color space_20141016
       for (int i = 0; i < numElems; i++)
        pdeElement = PDEContentGetElem(pdeContent, i);
        PDEObject obj=_objHelper.TraversePDPageContentsImage((PDEObject)pdeElement);
         if(obj == NULL)
          continue;
         pdeElement= (PDEElement)obj;
        type = PDEObjectGetType((PDEObject)pdeElement);
        if (type == kPDEImage)
         // Get Attr
         PDEImageGetAttrs((PDEImage)pdeElement, &attrs1, sizeof(PDEImageAttrs));
         // Get ColorSpace
         cols1 = PDEImageGetColorSpace((PDEImage)pdeElement);
         // Get Filter Array
         filNum1 = PDEImageGetFilterArray((PDEImage)pdeElement, fil1);
         // Get ASFixedMatrix
         PDEElementGetMatrix(pdeElement, &matrix1);
         //EV2.8.02000_19651_Retain color space_20141016 - Start
         if (matrix1.a < 0 || matrix1.b < 0 ||
                        matrix1.c < 0 || matrix1.d < 0 ||
                        matrix1.h < 0 || matrix1.v < 0)
          isTransformedPage = true;
         //EV2.8.02000_19651_Retain color space_20141016 - End
         // Set Import and Delete Index
         importIndex = i;
         break;
       // Create image data (for PDEImage)
    ========================================================================================== =================================
       ASInt32 bitPerComponent = bmih->biBitCount;
       ASInt32 bitWidth = 0;
       ASInt32 width1 = bmih->biWidth;
       ASInt32 height1 = bmih->biHeight;
       // Create image size
       if (bitPerComponent == 1)
        if (width1%8)
         bitWidth = (width1/8) + 1;
        else
         bitWidth = width1/8;
       else if (bitPerComponent == 4)
        if (width1%2)
         bitWidth = (width1/2)+1;
        else
         bitWidth = width1/2;
       else if (bitPerComponent == 8)
        bitWidth = width1;
       else if (bitPerComponent == 32)
        bitWidth = width1*4;
       else // if (bitPerComponent == 24)
        bitWidth = width1*3;
       ASInt32 imgSize4Acrobat = height1 * bitWidth;
       char* image4Acrobat = (char*)ASmalloc(imgSize4Acrobat);
       if( image4Acrobat == NULL )
        E_RETURN(FALSE);
       memset(image4Acrobat, 0, imgSize4Acrobat);
       // Create image
       ASInt32 nokori = (bitWidth)%4;
       ASInt32 bitWidth4hokan = 0;
       if (nokori)
        bitWidth4hokan = bitWidth + (4-nokori);
       else
        bitWidth4hokan = bitWidth;
       ASInt32 hbw = 0;
       ASInt32 hbw4hokan = 0;
       if (bitPerComponent == 1)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
       else if (bitPerComponent == 4)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
       else if (bitPerComponent == 8)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         memcpy((image4Acrobat+hbw), (image+hbw4hokan), bitWidth);
       else if (bitPerComponent == 32)
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         for (int kk = 0; kk < bitWidth; kk += 4)
          *(image4Acrobat+hbw+kk) = *(image+hbw4hokan+(kk+3));
          *(image4Acrobat+hbw+kk+1) = *(image+hbw4hokan+(kk+2));
          *(image4Acrobat+hbw+kk+2) = *(image+hbw4hokan+(kk+1));
          *(image4Acrobat+hbw+kk+3) = *(image+hbw4hokan+(kk));
       else
        for (int k = height1-1, l = 0; k >= 0; k--, l++)
         hbw = l*bitWidth;
         hbw4hokan = k*bitWidth4hokan;
         for (int kk = 0; kk < bitWidth; kk += 3)
          *(image4Acrobat+hbw+kk) = *(image+hbw4hokan+(kk+2));
          *(image4Acrobat+hbw+kk+1) = *(image+hbw4hokan+(kk+1));
          *(image4Acrobat+hbw+kk+2) = *(image+hbw4hokan+(kk));
       //Invert Image Data
    ========================================================================================== ================================
       for(int it = 0; it < imgSize4Acrobat; it++)
          image4Acrobat[it] = 255 -image4Acrobat[it];
       // Open Image Data
    ========================================================================================== ================================
       ASStm asstm = ASMemStmRdOpen(image4Acrobat, imgSize4Acrobat);  
       // Create PDEImage Attribute etc.
    ========================================================================================== ================================
       PDEImageAttrs attrs;
       memset(&attrs, 0, sizeof(PDEImageAttrs)); // necessary
       attrs.width = width1;
       attrs.height = height1;
       if (bitPerComponent == 1) {
        attrs.bitsPerComponent = 1;
        if (rgbquadNum) {
         attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
        } else {
         attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
         // B&W
       } else if (bitPerComponent == 4) {
        attrs.bitsPerComponent = 4;
        if (rgbquadNum) {
         attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
        } else {
         attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
       } else if (bitPerComponent == 8) {
        attrs.bitsPerComponent = 8;
        if (rgbquadNum) {
         attrs.flags = kPDEImageIsIndexed | kPDEImageExternal; // Indicates image uses an indexed color space.
        } else {
         attrs.flags = kPDEImageExternal; // Indicates image is an XObject.
       } else if (bitPerComponent == 32) {
        // not support (acrobat)
       } else { // (bitPerComponent == 24)
        attrs.flags = kPDEImageExternal;  // Indicates image is an XObject.
        attrs.bitsPerComponent = 8;
       // matrix
       ASFixedMatrix matrix;
       memcpy(&matrix, &matrix1, sizeof(matrix1));
       if (paperSizeChangeType == PAPERSIZE_SIZESPECIFICATION)
        matrix.a = chgMediaBox.right;
        matrix.b = 0;
        matrix.c = 0;
        matrix.d = chgMediaBox.top;
        matrix.h = 0;
        matrix.v = 0;
       // Filter
       PDEFilterArray fil;
       memset (&fil, 0, sizeof (PDEFilterArray));
       PDEFilterSpec spec;
       memset (&spec, 0, sizeof (PDEFilterSpec));
       memcpy(&fil, &fil1, sizeof(PDEFilterArray));
       CosDoc cosDoc;
       CosObj cosDict;
       // Build the CosObj for the filter specification
       cosDoc = PDDocGetCosDoc(pd);
       cosDict = CosNewDict(cosDoc, false, 2);
       CosDictPut(cosDict, ASAtomFromString("K"), CosNewInteger (cosDoc, false, -1));
       CosDictPut(cosDict, ASAtomFromString("Columns"), CosNewInteger (cosDoc, false, width1));
       //memset the filterspec so there are no garbage values if we leave members empty
       spec.encodeParms = cosDict;
       spec.decodeParms = cosDict;
       spec.name = ASAtomFromString("CCITTFaxDecode"); 
       fil.spec[0] = spec;
       // Create PDEImage
    ========================================================================================== =================================
       PDEImage pdeimage;
       pdeimage = PDEImageCreate(&attrs, sizeof(attrs), &matrix, 0, cols1, NULL, &fil, asstm, NULL, 0);
       // Delete PDEImage at importIndex(==j) of page -> Delete old image in PDF file
    ========================================================================================== ====================
       PDEContentRemoveElem(pdeContent, importIndex);
       // Add PDEImage
    ========================================================================================== ==========================
       PDEContentAddElem(pdeContent, importIndex, (PDEElement)pdeimage);
       PDPageSetPDEContent (pp, gExtensionID);
       PDPageReleasePDEContent(pp, gExtensionID);
       // Release object
       PDERelease((PDEObject)pdeimage);
       PDPageNotifyContentsDidChangeEx(pp, TRUE);
       PDPageRelease(pp);
       ASStmClose(asstm);
       if (image4Acrobat)
        ASfree(image4Acrobat);
       if (lookupTable)
        ASfree(lookupTable);
      HANDLER
       ret = FALSE;
      END_HANDLER
    return ret;

  • How I resized the Small Image for a Product Module

    I wanted a big picture for my small product module.
    1. I inserted {tag_largeimage} in place of {tag_smallimage} on the small product module.
    Site Manager -> Module Templates -> Online Shop -> Individual Product Small.
    The picture was 200 X 275. It was getting cut off.
    2. I open File Manager -> CSS and look in style.css for numbers smaller than those dimensions.
    At the bottom, at lines 1594/1595 I found what I was looking for: "#content .shop-product-small .image".
    3. I increased the dimensions to 200*275. If your site is automatically generating a border you'll need to include them in the final dimensions.
    The customer gets a better view of what I'm selling. I'm happy with the result. I hope this helps.

    Hi Steve,
    You should just use the large product image, use _path to get the raw URL of the image and use the tumbnail generation code (see knowledgebase) and specify your dimensions. This allows you to use then properly use a large product image in your detail view

  • Best file for importing images from Illustrator and Photoshop for small file sizes

    Hello Adode consults!
    I'm in the process of preparing an inDesign file for a school project -- I've already had a few harrowing experiences sending large files to the printer that are too large to process (and a very grumpy computer, etc). The end result will be a poster around 36 inches by 4 or 5 feet.
    I'm wondering if there are any best practices for making sure that the files imported into InDesign are a manageable size to begin with. Should I, for instance, be saving each file as a jpeg before placing in Indesign?
    Thanks!
    -Katherine

    No, you should not save every file as JPG before placing it in INDesign. JPG is only usefull for raster images (like photos) without any transparency in high quality.
    When you place images use:
    For raster images from Photoshop psd (rgb with color profile)
    For raster images from Photoshop with form layers, texts or any vector element use PDF (or PDP) with layers.
    For vector graphics from Illustrator use AI files or PDF.
    For layouts from other InDesign projects use either the INDD itsself or export a PDF/X4.
    But to the printer deliver a PDF according to their standards. E.g. when they need CMYK files export as PDF/X1a with the required output color space and the resolution they want. Produce the pdf via Export (Print).
    Don't deliver open INDD. File size should for printing projects not be an issue.

  • Setting azure portal icon for new images

    According to the Azure Service Management REST API, one should be able to set the icon to be displayed in the portal using the IconUri and SmallIconUri tags as described here.
    http://msdn.microsoft.com/en-us/library/azure/jj157198.aspx
    I sent this command with these values set to the URLs for publicly available png icon files and created a new image.  The image was created successfully and no errors were returned, however the icons displayed are still the default windows icons.
    Is this feature disabled somehow or is there some other specification that needs to be set or addressed?
    I could continue to try endless possibilities (like different sized icons or URL locations) but it seems like this should have worked according to the API specification since no other restrictions were stated.
    Could someone please tell me how to get this to work?
    Bruce

    Hi
    Sorry for mis-understand your question:
    I think this IconURI feature disabled.
    Because in latest Azure Management Class libraries, this class libraries is based on latest Azure REST API.
    You can't find IconUri property.
    MSDN article always update slowly.
    namespace Microsoft.WindowsAzure.Management.Compute.Models
    // Summary:
    // The List OS Images operation response.
    public class VirtualMachineOSImageListResponse : OperationResponse, IEnumerable<VirtualMachineOSImageListResponse.VirtualMachineOSImage>, IEnumerable
    // Summary:
    // Initializes a new instance of the VirtualMachineOSImageListResponse class.
    public VirtualMachineOSImageListResponse();
    // Summary:
    // Optional. The virtual machine images associated with your subscription.
    public IList<VirtualMachineOSImageListResponse.VirtualMachineOSImage> Images { get; set; }
    // Summary:
    // Gets the sequence of Images.
    public IEnumerator<VirtualMachineOSImageListResponse.VirtualMachineOSImage> GetEnumerator();
    // Summary:
    // A virtual machine image associated with your subscription.
    public class VirtualMachineOSImage
    // Summary:
    // Initializes a new instance of the VirtualMachineOSImage class.
    public VirtualMachineOSImage();
    // Summary:
    // Optional. The affinity in which the media is located. The AffinityGroup value
    // is derived from storage account that contains the blob in which the media
    // is located. If the storage account does not belong to an affinity group the
    // value is NULL and the element is not displayed in the response. This value
    // is NULL for platform images.
    public string AffinityGroup { get; set; }
    // Summary:
    // Optional. The repository classification of the image. All user images have
    // the category User.
    public string Category { get; set; }
    // Summary:
    // Optional. Specifies the description of the image.
    public string Description { get; set; }
    // Summary:
    // Optional. Specifies the End User License Agreement that is associated with
    // the image. The value for this element is a string, but it is recommended
    // that the value be a URL that points to a EULA.
    public string Eula { get; set; }
    // Summary:
    // Optional. Specifies a value that can be used to group images.
    public string ImageFamily { get; set; }
    // Summary:
    // Optional. Indicates whether the image contains software or associated services
    // that will incur charges above the core price for the virtual machine. For
    // additional details, see the PricingDetailLink element.
    public bool? IsPremium { get; set; }
    // Summary:
    // Optional. An identifier for the image.
    public string Label { get; set; }
    // Summary:
    // Optional. Specifies the language of the image. The Language element is only
    // available using version 2013-03-01 or higher.
    public string Language { get; set; }
    // Summary:
    // Optional. The geo-location in which this media is located. The Location value
    // is derived from storage account that contains the blob in which the media
    // is located. If the storage account belongs to an affinity group the value
    // is NULL. If the version is set to 2012-08-01 or later, the locations are
    // returned for platform images; otherwise, this value is NULL for platform
    // images.
    public string Location { get; set; }
    // Summary:
    // Optional. The size, in GB, of the image.
    public double LogicalSizeInGB { get; set; }
    // Summary:
    // Optional. The location of the blob in Azure storage. The blob location belongs
    // to a storage account in the subscription specified by the SubscriptionId
    // value in the operation call. Example: http://example.blob.core.windows.net/disks/myimage.vhd
    public Uri MediaLinkUri { get; set; }
    // Summary:
    // Optional. The name of the operating system image. This is the name that is
    // used when creating one or more virtual machines using the image.
    public string Name { get; set; }
    // Summary:
    // Optional. The operating system type of the OS image. Possible values are:
    // Linux, Windows.
    public string OperatingSystemType { get; set; }
    // Summary:
    // Optional. Specifies a URL for an image with IsPremium set to true, which
    // contains the pricing details for a virtual machine that is created from the
    // image. The PricingDetailLink element is only available using version 2012-12-01
    // or higher.
    public Uri PricingDetailUri { get; set; }
    // Summary:
    // Optional. Specifies the URI that points to a document that contains the privacy
    // policy related to the image.
    public Uri PrivacyUri { get; set; }
    // Summary:
    // Optional. Specifies the date when the image was added to the image repository.
    public DateTime PublishedDate { get; set; }
    // Summary:
    // Optional. The name of the publisher of this OS Image in Azure.
    public string PublisherName { get; set; }
    // Summary:
    // Optional. Specifies the size to use for the virtual machine that is created
    // from the OS image.
    public string RecommendedVMSize { get; set; }
    // Summary:
    // Optional. Specifies the URI to the small icon that is displayed when the
    // image is presented in the Azure Management Portal. The SmallIconUri element
    // is only available using version 2013-03-01 or higher.
    public Uri SmallIconUri { get; set; }
    You can get this class libraries by nuget manage cmd:
    Install-Package Microsoft.WindowsAzure.Management.Libraries -Pre
    My Blog
    Please use Make as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • How can i put one small image on another big image at particular point

    Hi,
    I have combined two images but new mask image is totally overwrite and come in whitecolored not in original color.....
    I have user CGImageMaskCreate, CGImageCreateWithMask......
    But i want to put small image on big image at particular point...... that i m tired to search but i can't find.......
    Any thing is remaining then pls tell me...
    Thanks,
    Haresh.

    Check the Quartz2D documents on Apple's site. Do a search in your examples folder in the developer folder and on Apple's site for Masks. I haven't used them under this API but that's probably the best place to start.

  • Photoshop slice tool and Save for Web image quality. Will it affect prints?

    I want to slice a large photo into multiple smaller (4x6) printable photos to arrange in a 12x12 inch scrapbook binder pocket (made of of 4x6 pockets). I need to order separate 4x6s online so tiling in the print options is not what I need.
    The slow way I know to do this involves cropping and saving each section (maybe even recording this action to do batch processing). However, another way is to use the slice tool to quickly divide up the sections then "Save for Web...". I can adjust some parameters, but I'm afraid there are other automatic adjustments that I don't want. For example, all images are converted to 96 dpi instead of the original 300 dpi. The number of pixels remains the same so I don't think there will be problems printing the picture.
    My question is: does the Save for Web function reduce image quality in any way when printing (it is obviously intended to be used to optimize images for websites)? Are there settings in "Save for Web" that would optimize for high quality prints? Is there a better way to tile an image?
    I have not yet compared any prints.
    W7
    CS6

    If you understand that something will do something you do not want like convert to 96 DPI as long as it does not resample you can always convert back to 300 DPI. If you want 6 4x6 to form a 12x12 you must start with an square 1:1 aspect ratio image. That you resample to 12"x 12" at 300 dpi if you want 6 4x6 300 dpi images.
    If the original images vary in size and aspect ratio you need to crop them square or add two borders to make them square.   The rest is easy to do with an action.
    The square crop or border can be automated with a little scripting.  If crop  a center crop would be the route to go. My crafting actions package contains  more the a dozen scripts to be used within action. One is a plug-in script that would make center cropping a snap two steps menu File>Automat>AspectsRatioSelection followed menu Image>Crop.  Add a menu Image>Size set side to 12" and resolution 300 DPI and you have your  starting 12"x12" 300 dpi image.
    Flatten the image make your first 4"x6" selection copy past to add it as a layer. Select the background select the next 4x6 area copy and paste repeat that process till you have added the 6 4"X6" layers. Then delete the background, Select all, target all layers and use layer>Align layers to selection>Top edge then repeat align to left edge. the Image>Trim you have your 6 4x6 in a stack.   You can the use Adobe Photoshop Script Export Layer to file.   All automated in an action however the last step Export layers to files is interactive for its not a plug-in script. So if you batch it you keen to hang around to interact with the last step for each image.
    You could also write you own export script that would not need human intervention to use instead of Adobe interactive script.
    Crafting Actions Package UPDATED Aug 10, 2014 Added Conditional Action steps to Action Palette Tips.
    Contains
    Action Actions Palette Tips.txt
    Action Creation Guidelines.txt
    Action Dealing with Image Size.txt
    Action Enhanced via Scripted Photoshop Functions.txt
    CraftedActions.atn Sample Action set includes an example Watermarking action
    Sample Actions.txt Photoshop CraftedActions set saved as a text file.
    More then a dozen Scripts for use in actions
    Example
    Download

  • Is there a way to use a single bitmapdata for multiple images with GPU mode?

    With GPU mode is there a way to bring in a single 1024 X 1024 png containing all my sprites and then slice it up into multiple display objects all refering to the original BitmapData?
    I have an app that runs in GPU mode - but I want to optimize the image management.
    I am making three sets of images in the orders of 2048, 1024 and 512 px.
    The app is a book app and each page has around 4 to 5 bitmaps. I would like to bring in one single image and slice it up - but just refer to the original bitMapData in the memory.
    Is there a way to do this - e.g. using a masking technique?
    I think it is possible using textures in direct mode - but that is not an ideal solution for me - as the app is already in the appstore - and I would have to entirely refactor it for stage3D. Also I use very large bitmaps which have some masking animations applied to them dynamically: http://youtu.be/Nm0T1jLCTz8?t=42s
    Currently, I use jpgs and a jpeg mask file for each image which I composite to get the alpha - then I scale them.
    PNGs may be better for GPU - (no compositing) but they make for a huge app file.
    Now I am converting it to use diffent sized assets depending on the device, then scaling them if need, and then compositing them for apha.  What I was hoping was to find a technique that could reduce the number of bitmapdata objects used and reduce the operations in general. 
    Any thoughts on optimizing would be appreciated.  I can add my code here if it helps.

    Tell Apple:
    http://www.apple.com/feedback/iphone.html
    We're all users here, just like you.

Maybe you are looking for

  • Acrobat equivalent of PPT's "presentation" mode?

    I've convinced a client to let me use an Interactive PDF (out of InDesign CS5) instead of PPT for his courtroom graphics. It is working absolutely beautifully! The *only* feature of Powerpoint that I have not been able to replicate/surpass/find a wor

  • Trying to verify keychain with a number that I never had.

    Im trying to verify keychain. Its sending a code to ...xxx33. This is a number I never had or used before. I looked through all of my iCloud settings and I dont even have a number saved on there. The only thing I can think of is 33 are the last numbe

  • Dynamic Where Clause in a Procedure

    Hi everyone! I would like to seek an assistance regarding a where clause that can be set dynamically during runtime in a procedure. Is it possible that a where clause of a procedure can be passed using a parameter? I would appreciate all responses. T

  • Custom button in FPM component

    Hello experts, In a requirement i want to add custom button in FPM_OIF_COMPONENT. For this i followed following steps - 1. In SE80 transaction open FPM_OIF_COMPONENT 2. Select the requisite component configuration. 3. Start Configurator. 4. In config

  • How to integrate EBS in Oracle Portal?

    How to integrate EBS in Oracle Portal? I want to integrate EBS with Oracle Portal. How to do SSO?