Why different size of the PNG-24 file format: vs deletion of pixels in the layer mask
I noticed in Photoshop CS5.1 and CS6 strange behavior when saving web files in the PNG-24 format.
CASES1.
I have a layer photo 260 x 360.
Create square 200 x 200 and layer mask to hide selection (effect: transparent square hole inside)
Save for web in format PNG-24 (transparency)-> 131.4 k file size
CASE2.
I have a layer photo 260 x 360.
Create the square Marquee 200 x 200 and delete pixels (effect: transparent square hole inside)
Save for web in format PNG-24 (transparency)-> 66,93 k file size
Both pictures got same transparent square hole, but sizes are so different. Using mask does not reduce the size of the file PNG24. Why is it like that, bug?
For cases 1 and 2 the number of pixels in the image is exactly the same thing then you must consider other factors to take into account the file size differences.
Assuming that the image is a RGB/8 image:
1 uses a mask which means that it is a picture of four channels that require 32 bits per pixel.
Case 2 has no mask is only a picture of 3 channels that require 24 bits of pixel.
If the content of the data in Photoshop is different for the two cases, and the psd for case 1 file size would be larger than in case 2.
In PNG, transparency of files can be specified by declaring the individual pixels to be transparent or an alpha channel can be added. Again, it is 24 bits per pixel compared to 32 bits per pixel. If Photoshop, using enregistrer save for Web, creates an alpha channel for cases 1 and says the individual pixels to be transparent in the case 2, then the differences in file size that you can find should.
Paulo
Tags: Photoshop
Similar Questions
-
Source monitor displays a different size for the program in CC2014 monitor
I have imported a clip and the source monitor panel shows a different size in the program monitor?
Thanks Chris
Looks like your sequence is set up for the right size. Select a video file and then right-click see 'New sequence of the Clip' if that helps. I see that your video hardware is HD do you have set up the sequence to match the stills sooner? It is perhaps greater than HD? If this is the case make a sequence of the video size and use "scale to the size of the image" for the stills.
-
Effect on the size of the layer
Hello
When I use certain effects, they want to go over the size of the layer
This is what it looks like without effect
with the CC scale wipe...
I would like that the effect go to the rectangle can someone help me please...
Thank you and have a nice day
Sometimes, you can use push the limits, other times, you need to first dial your layer and apply the effect to the demo.
-
Why apply the layer mask is grayed out?
Hello
From time to time 'apply the layer mask' is not available.
What I checked myself:
-Photoshop is not in master view (abbreviation Q).
-J' have reset all warning dialog boxes (since it is a way to get a mask by dragging it to the trash).
Can't get to work!
Other solutions? Thank you!
I found myself - the layer was a dynamic object. Perhaps I should suggest Adobe to let Photoshop ask pixelation during application, instead of just greyin'out.
-
Opacity of the layer mask Photoshop in AE
I have a series of PSD files each with a layer mask with a default opacity of 100%. PS, I change the 'density' of the layer of about 15% in order to achieve the desired result. Either way, the layer mask is also an inactive Alpha channel.
My question is that when I include the series of the PSD AE as-is, the layer mask is available as a black. It doesn't seem to be a way adjust the density of the mask as in Photoshop. I tried to use an alpha channel and track matte, but no luck. The main PSD file has the default active layer apparently mask with no way to change it.
Maybe I'll have to put in place an action on PSD files?
Thank you.
AE is not layer masks as separate channels, it uses only the calculated pixel opacity. Simply, you cannot use this method. Rasterize your stuff to separate the layers.
Mylenium
-
How to resize layer with a large image of the layer mask?
Hi all
How to resize the image on the layer mask?
* document - doc.width, doc.height
* mask - activeLayer.bounds
* and how to take the coordinates in the image with the mask, if the image is larger than the size of the document?
2014, use it at your own risk.
#target "photoshop - 70.032»
If (app.documents.length > 0) {}
Var ref = new ActionReference();
ref.putEnumerated (charIDToTypeID ("Lyr"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));
var layerDesc = executeActionGet (ref);
var layerMaskEnabled = layerDesc.getBoolean (stringIDToTypeID ("userMaskEnabled"));
If (layerMaskEnabled == true) {}
// =======================================================
var idsetd = charIDToTypeID ("setd");
var desc4 = new ActionDescriptor();
var idnull = charIDToTypeID ("null");
var ref1 = new ActionReference();
var idLyr = charIDToTypeID ("Lyr");
var idOrdn = charIDToTypeID ('Ordn');
var idTrgt = charIDToTypeID ("Trgt");
Ref1.putEnumerated (idLyr, idOrdn, idTrgt);
Desc4.putReference (idnull, ref1);
idT var = charIDToTypeID ("T");
var desc5 = new ActionDescriptor();
var idUsrM = charIDToTypeID ("rocket");
Desc5.putBoolean (idUsrM, false);
var idLyr = charIDToTypeID ("Lyr");
Desc4.putObject (idLyr, idT, desc5);
executeAction (idsetd, desc4, DialogModes.NO);
};
Alert (app.activeDocument.activeLayer.bounds)
};
-
I don't see a thumbnail of the mask layer instead of the layer mask itself when I add a layer mask to the CS6. How can I change this so the layer mask
appear in the layers palette?
Thank you
Marc
From what I remember of the CS6, it's the same CC follow these steps: in the layers palette, click on Panel options
Click on the larger thumbnail
The layer mask should now be big enough to see. Otherwise, you need to display it on the screen by alt clicking on
on a PC option by clicking on the layer mask on a Mac
-
White color on the layer mask does not
Well, I have a problem... Each setting is fine, but when I open the layer mask on a layer, and if I have the black brush, it works very well, BUT if I brush white, it does not work. It's like the color white is on 0% opacity. It shows me an action in "history, but it's like I'm not even brushing."
Now, when I want white brush, I switched layer mask, brush black and then I reverse again, because as I said, the white color just doesn't work...
-Colours btw, work not in a layer maskIs the Mode in the Options bar to brush on something other than normal?
-
apply the layer mask selection
Hello
IAM looking for a solution to apply a previeuws
choice of a layer of an adjustment layer mask.
The gale of my code to select the mask - but when I apply the
selection, it creates top layer.
I need to go into the layer mask (alt and click) and then paste it.
Then turns off.
Scriptlistender is not helping much.
app.activeDocument.selection.selectAll(); //selects stuff on the preview layer app.activeDocument.selection.copy(); //copy that stuff - to paste it into the mask later var adjLayer = doc.layerSets.getByName("ao").artLayers.getByName("ao"); //searching for a group and specific layer var mask = ExtendedLayer.selectLayerMask(adjLayer); // extern function wich selects the mask (does not go "into" the mask - just selects it) pastMask = function() { // Selectin recorded by Script listender var idslct = charIDToTypeID( "slct" ); var desc321 = new ActionDescriptor(); var idnull = charIDToTypeID( "null" ); var ref212 = new ActionReference(); var idChnl = charIDToTypeID( "Chnl" ); var idChnl = charIDToTypeID( "Chnl" ); var idMsk = charIDToTypeID( "Msk " ); ref212.putEnumerated( idChnl, idChnl, idMsk ); desc321.putReference( idnull, ref212 ); var idMkVs = charIDToTypeID( "MkVs" ); desc321.putBoolean( idMkVs, false ); executeAction( idslct, desc321, DialogModes.NO ); // paste, recorded by script listender var idpast = charIDToTypeID( "past" ); var desc322 = new ActionDescriptor(); var idAntA = charIDToTypeID( "AntA" ); var idAnnt = charIDToTypeID( "Annt" ); var idAnno = charIDToTypeID( "Anno" ); desc322.putEnumerated( idAntA, idAnnt, idAnno ); executeAction( idpast, desc322, DialogModes.NO ); }; pastMask();
Any help would be really nice. !
Thank you very much
Alpha
app.activeDocument.selection.selectAll (); selects on the preview layer stuff
app.activeDocument.selection.copy (); copy such things - to paste it later into the mask
var adjLayer = activeDocument.layerSets.getByName("ao").artLayers.getByName ("ao"); looking for a group and a specific layer
activeDocument.activeLayer = adjLayer;
pastMask = function()
{
Selectin registered by the listender Script
var idslct = charIDToTypeID ("TPCV");
var desc321 = new ActionDescriptor();
var idnull = charIDToTypeID ("null");
var ref212 = new ActionReference();
var idChnl = charIDToTypeID ('channel');
var idChnl = charIDToTypeID ('channel');
var idMsk = charIDToTypeID ("Msk");
ref212.putEnumerated (idChnl, idChnl, idMsk);
desc321.putReference (idnull, ref212);
var idMkVs = charIDToTypeID ("MKV");
desc321.putBoolean (idMkVs, true);
executeAction (idslct, desc321, DialogModes.NO);
dough, recorded by the listender script
var idpast = charIDToTypeID ("gone");
var desc322 = new ActionDescriptor();
var the idAntA = charIDToTypeID ("AntA");
var idAnnt = charIDToTypeID ("Annt");
var idAnno = charIDToTypeID ("year");
desc322.putEnumerated (idAntA, idAnnt, idAnno);
executeAction (idpast, desc322, DialogModes.NO);
};
pastMask();
-
Restore to 'apply the layer mask' OPTION?
There is a new feature where you can drag a layer to the trash and NOT invited mask to "apply the layer mask? This also has the 'do' don't show again option - which I clicked by accident. Thus, the default is now to apply the layer mask when I drag a layer mask to the trash. I can't imagine a way to restore the more traditional function, without restoring all other prefs.
So what I would like is a way to restore the default classic where dragging a layer mask to trash the opportunity to apply or ignore them.
Please excuse this apparently insgnificant request, but it is a very common function I would like to restore.
Thank you!
See if clicking Reset all dialogs warning at the bottom of Photoshop > Preferences > general solves the problem.
-
How to paste a picture into the layer mask? (Photoshop Cs6)
How to paste a picture into the layer mask? (Photoshop Cs6)
Try the steps in this tip video tutorial:
Good luck!
See you soon,.
Kendall
-
How can I change the opacity of the layer mask?
HI -.
I used a layer mask to hide portions of a picture.
Now I need to leave this hidden part of show at, say, 50% opacity (I'll have to experiment to find the optimal percentage.).
I'd like to screw up the layer mask and start on another. Already, I thought I could duplicate the masked layer, remove the mask on the copy and set its opacity to 50% but now I have 2 layers. I suspect that there is a way to do without a double layer.
Is it possible to adjust the opacity of the layer mask?
TIA your entry
JL
Win7, Photoshop CS5
Have you tried to use the controls in the masks palette?
You control the opacity of the area exposed with the opacity of the layer and the density of the hidden box with the density on the masks palette slider.
-
Change the layer mask: Alt + Shift + click does not work?
I have PES 9 w/Mac OS X. According to Adobe using for layer masks, "to display the mask in a mask color red, hold down the Alt + Shift and click on the thumbnail of the layer mask". It is also stated by Missing Manual for elements. I can't get this to work and can display the mask only in itself (in black and white). I have uninstalled/reinstalled without success. In other words, when I change the mask, I don't see where I'm editing. Can someone help me?
Exit the editor, then go in your username > library > Preferences and delete:
com.adobe.PhotoshopElements.plist
Adobe Photoshop Elements 9 paths
Adobe Photoshop Elements 9 parameters
Repair permissions, and then try again.
-
Exact same menu in two different templates is a different size on the screen
Hello
Everyone has problems with the size of their menus? I have two master pages on my Web site, a home page and another one for the inside pages. I copy and paste the exact same menu for both of these templates, but for some reason any, as they appear on the Web site in different sizes. Can someone help me?
Try to check the sizes in the transform menu. Which is located in the upper right, once an object is selected.
-
working capital with images of different sizes in the table
Hello, I have a table with images of different size. I want to use a bearing on each Panel, but my image is not the same size. When I roll over the image the first image disappears. Any suggestions? I use CS5.5 Show map to the bottom.of page.
Thank you
Also I have never been able to use the "Preview in browser" globe icon I don't seem to be, any suggestions on how to add this?
A very simple solution is to make a second image that contains the image superimposed on the map. You must have 4 total images for this (all images have the same size):
1. the plan with no photos
2 - 4. The card with a unique image on the desired region (i.e., 3 additional images).
In your access points, you exchange the entire map with the map of the desired region.
Maybe you are looking for
-
SE chat history of load on a new computer?
I will travel in a few weeks, and unfortunately I can't take my computer with me, all the cats in my Skype where currently. I could use my phone, of course... But I prefer the desktop version instead. If any of my friends who will be going also, coul
-
T530 can support 1 TB SSD?
Hi all I was wondering if T530 supports the upgrade of 1 TB SSD? See you soon,. Stan
-
I can't delete emails from outlook express, pop box says up point cannot be deleted
I have a lot of emails and Outlook express will not let me delete one of them. A box appears and tells the message cannot be deleted?
-
I need help fixing error 340... only, I get this message when I try to send an email... is possible to fix this for free?
-
I have 2 of the same operating system?
I have Windows Vista 32 bit Premium on my laptop, my friend was playing with my computer and now it won't start! When I try to start, it goes to the Windows Boot Manager and wonder what operating system to begin with, and the two say windows vista op