Skip to content

Commit

Permalink
Merge pull request OmegaK2#3 from zao/incursion-images
Browse files Browse the repository at this point in the history
Use poe-utils to slice Incursion room icons and convert images
  • Loading branch information
Journeytojah committed Oct 10, 2021
2 parents 92f308f + aca86a2 commit 64ca04f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PyPoE/cli/exporter/wiki/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ def _write_dds(self, data, out_path, parsed_args):
if not parsed_args.convert_images:
return

os.system('magick convert "%s" "%s"' % (
os.system('process-image convert "%s" "%s"' % (
out_path, out_path.replace('.dds', '.png'),
))
os.remove(out_path)
Expand Down
4 changes: 2 additions & 2 deletions PyPoE/cli/exporter/wiki/parsers/incursion.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def export(self, parsed_args, incursion_rooms):
idl_sources.add(src)

os.system(
'magick "%(src)s" -crop %(w)sx%(h)s+%(x)s+%(y)s '
'"%(dst)s incursion room icon.png"' %
'process-image convert "%(src)s" "%(dst)s incursion room icon.png" '
'%(x)s %(y)s %(w)s %(h)s' %
{
'src': src,
'dst': os.path.join(self._img_path, data['icon']),
Expand Down

0 comments on commit 64ca04f

Please sign in to comment.