Image is Corrupted in dist folder After building in Production Mode ( ng build --prod)

107 views
Skip to first unread message

balu...@gmail.com

unread,
Sep 17, 2018, 2:00:32 PM9/17/18
to Angular and AngularJS discussion
In have a image in below path "\assets\img\Error.png",
After building in Production Mode ( ng build --prod) the image (Error.png) is Corrupted under \dist\assets\img folder.

Details:
File Type: PNG
Size:324 bytes 

Note: i have attached the image for your reference.


Image View Before Build in Img folder.PNG
Image View In Dist Folder_Image is Corrupted.PNG
error.png

Sander Elias

unread,
Sep 17, 2018, 2:04:34 PM9/17/18
to Angular and AngularJS discussion
Hi Balu,

Can you try with another image name? Might make a difference. If so, please report back.

Regards
Sander

BhanuTeja

unread,
Sep 18, 2018, 3:35:03 AM9/18/18
to ang...@googlegroups.com
Hi Sander,

I tried below three scenario 
1.  Orginal image with orginal name ---> dist result (corrupted),
2. Orginal image with Another name --->dist result (corrupted)
3.  New image with orginal name -->dist result (corrupted)

Regards,
Balu.

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Sander Elias

unread,
Sep 18, 2018, 10:08:33 AM9/18/18
to Angular and AngularJS discussion
Hi Balu,

And this only happens to the one image?

Regards
Sander

BhanuTeja

unread,
Sep 18, 2018, 10:19:23 AM9/18/18
to ang...@googlegroups.com
Hi Sander,

I changed the extension  for the image..then it is working fine.

Regards,
Balu.
--

Sander Elias

unread,
Sep 18, 2018, 12:11:48 PM9/18/18
to Angular and AngularJS discussion
Hi Balu,

Still, it's strange. Hard to say what the actual root cause is.
Well, You got it going now!

Regards
Sander
Reply all
Reply to author
Forward
0 new messages