We are using Tridion 2013 SP1.
When we are publishing a dcp or page that uses an image we have a TBB in c# that compress the image to the size that is used in these dcp.
But we are detecting that the publish process is keeping the original image, that is not used in any dcp or page.
Is this a normal behavior of the publication process or we are doing something wrong in our compression TBB?
Maybe we have to remove the original image from the Output zip.
We checked the zip file generated by the publication process and we find the next info in the binaries.xml:
<Binary Id="tcm:42-59415" VariantId="tcm:42-111236-32">
<Path>\multimedia\images\nh-bucharest-tcm42-111236-32.jpg</Path>
<URL>/multimedia/images/nh-bucharest-tcm42-111236-32.jpg</URL>
<Type>image/jpeg</Type>
</Binary>
<Binary Id="tcm:42-59371" VariantId="tcm:42-115554-32">
<Path>\multimedia\images\nh-bucharest-1-tcm42-115554-32.jpg</Path>
<URL>/multimedia/images/nh-bucharest-1-tcm42-115554-32.jpg</URL>
<Type>image/jpeg</Type>
</Binary>
<Binary Id="tcm:42-1853">
<Path>\multimedia\images\icono-43_tcm42-1853.png</Path>
<URL>/multimedia/images/icono-43_tcm42-1853.png</URL>
<Type>image/png</Type>
</Binary>
<Binary Id="tcm:42-1854">
<Path>\multimedia\images\icono-44_tcm42-1854.png</Path>
<URL>/multimedia/images/icono-44_tcm42-1854.png</URL>
<Type>image/png</Type>
</Binary>
All the entries that has the attribute VariantId are the compressed images. If these attribute is not present is the original image.
We checked the component presentations and pages included in the zip file and we only have references to the compressed images and not to the original.
How can we remove the original images?
Thank you