i have form many custom firemonkey components each contain multiple bitmaps (loaded png image files). every time form saved, binary data of png images change in fmx file!
this messes version control log (svn), changing 1 property in form results in thousands of changed lines.
is there way can avoid this?
see screen shot svn diff here: :

when form saved, dotinlay.png image not changed me, , not control contained image had changes .
edit: comments, bug in delphi, created new qp report: https://quality.embarcadero.com/browse/rsp-11259
vote if find should solved.
the ide that. 1 of perils of putting binary resources .dfm/.fmx files. don't believe there can do. embarcadero can change ide.
what have .dfm/.fmx file , source control review every commit , revert unintended changes. need no matter because ide have habit of changing things should not changed. non-binary resources.
my recommendation though don't put images in .dfm/.fmx files. keep them in resources. way can put image file revision control , have linked resource executable. you'll need more work in code load resource @ runtime, can wrap in helper methods if needed , each image load should reduced one-liner.
the real benefit of approach exert better change control on binary assets.
Comments
Post a Comment