Skip to content

Commit

Permalink
Accidentally set alpha to 0. Add a few other speed improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
meltingice committed Aug 2, 2013
1 parent 29c486c commit 3932669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/psd/image_exports/png.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def to_png

# Saves the PNG data to disk.
def save_as_png(file)
to_png.save(file)
to_png.save(file, :fast_rgba)
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion lib/psd/image_modes/rgb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ def combine_rgb_channel
PSD.logger.debug "Beginning RGB processing"

(0...@num_pixels).step(pixel_step) do |i|
r = g = b = a = 0
r = g = b = 0
a = 255

PSD::Image::CHANNEL_INFO[0...channels].each_with_index do |chan, index|
val = @channel_data[i + (@channel_length * index)]
Expand Down

0 comments on commit 3932669

Please sign in to comment.